The Wayback Machine - https://web.archive.org/web/20201212231235/https://github.com/microsoft/TypeScript/commits/master
Skip to content
Permalink
master

Commits on Dec 12, 2020

  1. Simplify expression type to fix build break (#41942)

    weswigham committed Dec 12, 2020
  2. Template literal types for template literal expressions (#41891)

    * Infer template literal types for template literal expressions
    
    * Update test
    
    * Update another test
    
    * Accept new baselines
    
    * Minor fixes
    
    * Add tests
    
    * Accept new baselines
    
    * Make new TypeFlags internal
    
    * Accept new API baselines
    
    * Ensure template literals assignable to String, Object, {}, etc.
    
    * Add tests
    ahejlsberg committed Dec 12, 2020

Commits on Dec 11, 2020

  1. Make findAllReferences work on triple-slash reference paths that reso…

    …lve to scripts (#41936)
    
    * Support find-all-references on triple-slash references that resolve to scripts
    
    * Rename terrible name
    
    * Add test for <reference types="..." />
    
    * Actually accept baselines
    andrewbranch committed Dec 11, 2020
  2. Find references of a module by filename (#41805)

    * Naive implementation enough to build and write a test
    
    * Add simple test
    
    * Add project references test
    
    * Add deduplication test, accept baselines
    
    * Add test for referencing a script (doesn’t do anything)
    
    * Update API baselines
    
    * Use refFileMap for non-module references
    
    * Fix find-all-refs on module specifier
    
    * Remove unused util
    
    * Don’t store text range on ts.RefFile
    
    * Ensure string literal could itself be a file reference
    
    * Remove unused utilities
    
    * Improve baseline format
    
    * Preserve old behavior of falling back to string literal references
    
    * Update baselines from master
    
    * Fix old RefFileMap code after merge
    
    * Add test for additional response info
    
    * Undo test change
    andrewbranch committed Dec 11, 2020
  3. Update package-lock.json

    typescript-bot committed Dec 11, 2020
  4. Watch extended configs if present (#41493)

    * Watch extended configs if present
    
    * Address code review comments
    
    Added new `WatchType` for extended config files. Refactored watch map
    update to separate function, relocated call sites. Removed unnecessary
    test cases and relocated with new tests in programUpdates.
    
    * Unify extended config file watching between tsc/tsserver
    
    Update `updateExtendedConfigFilesWatch` to read from a
    `TsConfigSourceFile` to get `extendedSourceFiles`. Add watcher map to
    `ConfiguredProject` in the server. New test cases to verify correct
    events triggered and extended files are being watched properly.
    
    * Simplify watcher callback, fix tests
    
    Removes unnecessary actions in extended config watcher callback
    function. Updates tests to match.
    
    * Share extended config watchers across projects in server
    
    New shared watcher map in ProjectService that stores callbacks per
    project to be invoked when the file watcher is triggered. The
    FileWatcher is created with the watch options of the first Project to
    watch the extended config.
    
    * Refactor shared extended config map and watchers
    
    Remove all server-related utility functions/types from
    watchUtilities. Store config-project mapping and config file watchers
    inside ProjectService with new private methods to add or remove
    projects.
    
    * Store projects in extended config file watcher
    
    Creates SharedExtendedConfigFileWatcher in both editorServices
    (tsserver) and tsbuildPublic. The file watcher is responsible for
    triggering a full project reload for the contained projects. Upon
    reload, any configs that are no longer related to a project have their
    watchers updated to match. New test cases to confirm that the file
    watchers for extended configs are closed when the project is closed.
    
    * Apply suggestions from code review
    
    Co-authored-by: Sheetal Nandi <[email protected]>
    
    * Map extended config files by path
    
    * Move shared watcher into utilities and add more tests
    
    Co-authored-by: Sheetal Nandi <[email protected]>
    molisani and sheetalkamat committed Dec 11, 2020

Commits on Dec 10, 2020

  1. Detect comparisons between large unions or intersections (#41574)

    * Detect comparisons between large unions or intersections
    
    If their multiplied size is greater than 1E6 (chosen based on the repro
    in #41517), then we'll expend a large amount of time and memory
    comparing them, so record a trace event.
    
    Related to #41517
    
    * Make an exception for primitive union comparisons
    
    * Address PR feedback
    
    * Pick up baseline change from master
    
    * Eliminate diagnostic and only trace
    
    * Don't check reportErrors
    amcasey committed Dec 10, 2020
  2. Elide export assignment when it does not resolve to a value (#41904)

    * Only mark aliases that resolve to values referenced
    
    * Update other affected baselines
    
    * Remove redundant check
    andrewbranch committed Dec 10, 2020
  3. LEGO: Merge pull request 41908

    LEGO: Merge pull request 41908
    csigs committed Dec 10, 2020
  4. LEGO: check in for master to temporary branch.

    csigs committed Dec 10, 2020

Commits on Dec 9, 2020

  1. fix(41845): add missing values to diagnostic message related to jsx o…

    …ption (#41873)
    a-tarasyuk committed Dec 9, 2020
  2. LEGO: Merge pull request 41900

    LEGO: Merge pull request 41900
    csigs committed Dec 9, 2020
  3. LEGO: check in for master to temporary branch.

    csigs committed Dec 9, 2020
  4. Update package-lock.json

    typescript-bot committed Dec 9, 2020
  5. LEGO: Merge pull request 41892

    LEGO: Merge pull request 41892
    csigs committed Dec 9, 2020
  6. LEGO: check in for master to temporary branch.

    csigs committed Dec 9, 2020
  7. LEGO: Merge pull request 41884

    LEGO: Merge pull request 41884
    csigs committed Dec 9, 2020
  8. LEGO: check in for master to temporary branch.

    csigs committed Dec 9, 2020
  9. Keep track of why files are in the program (#40011)

    * --explainFiles currently hardcoded
    
    * Move configFileSpecs to configFile so it can be used in program later
    
    * Explain root file inclusion reason and explain include files in the log
    
    * Baseline explainFiles
    
    * Fix incorrectly reporting of file list two times in --b mode
    
    * Fix unnecessary new lines in output represented incorretly in the baseline
    
    * More tests
    
    * More cleaning up
    
    * Keep listing files in same order as list files, just add explaination
    
    * Fix double listing of file names when the program has errors
    
    * Make diagnostic chains for file include reason
    
    * Add explaination for the file include to diagnostics for program
    
    * Harness ls incorrectly adding tsconfig as the root file
    
    * Fix incorrect use of path for calculating absolute path
    
    * Fix the root file in fourslash
    
    * Test project service options merge
    
    * Add config file name to matched by include explaination
    
    * Add test for when the file changes and program is reused completely but related file information is reattached to correct location
    
    * Handle file preprocessing diagnostics updates when program is reused and related information location changes
    
    * Moved types to types.ts
    
    * Refactoring and cleanup
    
    * More cleanup
    
    * More refatoring
    
    * Handle synthetic imports
    
    * Baselines after merge
    sheetalkamat committed Dec 9, 2020
  10. Adds experimental support for running TS Server in a web worker (#39656)

    * Adds experimental support for running TS Server in a web worker
    
    This change makes it possible to run a syntax old TS server in a webworker. This is will let serverless versions of VS Code web run the TypeScript extension with minimal changes.
    
    As the diff on `server.ts` is difficult to parse, here's an overview of the changes:
    
    - Introduce the concept of a `Runtime`. Valid values are `Node` and `Web`.
    - Move calls to `require` into the functions that use these modules
    - Wrap existing server logic into `startNodeServer`
    - Introduce web server with `startWebServer`. This uses a `WorkerSession`
    - Add a custom version of `ts.sys` for web
    - Have the worker server start when it is passed an array of arguments in a message
    
    In order to make the server logic more clear, this change also tries to reduce the reliance on closures and better group function declarations vs the server spawning logic.
    
    **Next Steps**
    I'd like someone from the TS team to help get these changes into a shippable state. This will involve:
    
    - Adddress todo comments
    - Code cleanup
    - Make sure these changes do not regress node servers
    - Determine if we should add a new `tsserver.web.js` file instead of having the web worker logic all live in `tsserver.js`
    
    * Shim out directoryExists
    
    * Add some regions
    
    * Remove some inlined note types
    
    Use import types instead
    
    * Use switch case for runtime
    
    * Review and updates
    
    * Enable loading std library d.ts files
    
    This implements enough of `ServerHost` that we can load the standard d.ts files using synchronous XMLHttpRequests.
    
    I also had to patch some code in `editorServices`. I don't know if these changes are correct and need someone on the TS team to review
    
    * Update src/tsserver/webServer.ts
    
    * Update src/tsserver/webServer.ts
    
    Co-authored-by: Sheetal Nandi <[email protected]>
    
    * Addressing feedback
    
    * Allow passing in explicit executingFilePath
    
    This is required for cases where `self.location` does not point to the directory where all the typings are stored
    
    * Adding logging support
    
    * Do not create auto import provider in partial semantic mode
    
    * Handle lib files by doing path mapping instead
    
    * TODO
    
    * Add log message
    
    This replaces the console based logger with a logger that post log messages back to the host. VS Code will write these messages to its output window
    
    * Move code around so that exported functions are set on namespace
    
    * Log response
    
    * Map the paths back to https:
    // TODO: is this really needed or can vscode take care of this
    How do we handle when opening lib.d.ts as response to goto def in open files
    
    * If files are not open dont schedule open file project ensure
    
    * Should also check if there are no external projects before skipping scheduling
    Fixes failing tests
    
    * Revert "Map the paths back to https:"
    
    This reverts commit 0edf650.
    
    * Revert "TODO"
    
    This reverts commit 04a4fe7.
    
    * Revert "Should also check if there are no external projects before skipping scheduling"
    
    This reverts commit 7e49390.
    
    * Refactoring so we can test the changes out
    
    * Feedback
    
    Co-authored-by: Sheetal Nandi <[email protected]>
    mjbvz and sheetalkamat committed Dec 9, 2020

Commits on Dec 8, 2020

  1. Loosen author tag parsing (#41820)

    * Loosen author tag parsing
    
    Also make the code more efficient and easier to read.
    
    1. Arbitrary text, except for newline and @, is allowed for the author name.
    2. Arbirtrary text, except for newline, is allowed for the email
    address.
    3. Newline is treated as a match for an open <
    
    I tried to allow newlines in the author and email, but it was ambiguous
    with the end of the tag.
    
    I also got rid of the two lookaheads and unified the trailing comment
    handling.
    
    Fixes #41804
    
    * remove hardmode test since it did not reveal anything new
    sandersn committed Dec 8, 2020
  2. Reuse input nodes where possible when serializing jsdoc implements cl…

    …auses (#41783)
    
    * Reuse input nodes where possible when serializing jsdoc implements clauses
    
    * Whitespace changes, per PR feedback
    weswigham committed Dec 8, 2020
  3. LEGO: Merge pull request 41878

    LEGO: Merge pull request 41878
    csigs committed Dec 8, 2020
  4. LEGO: check in for master to temporary branch.

    csigs committed Dec 8, 2020
  5. Preserve substitution types in check position of conditional types (#…

    …41841)
    
    * Preserve substitution types in check types of conditional types
    
    * Undo changes from #32093
    
    * Add regression tests
    
    * Accept new baselines
    ahejlsberg committed Dec 8, 2020

Commits on Dec 7, 2020

  1. Undo #39258 (isArray changes) see overview at #41808 (#41851)

    orta committed Dec 7, 2020
  2. Handle output file names descripency between tsc --b and actual progr…

    …am emit file path calculation (#41811)
    
    * Baseline showing #41801 and other issues with output path calculation
    
    * Add a way to note descripencies between clean and incremental build
    
    * Add descripency when no rootDir is specified but project is composite
    
    * if rootDir is specified, irrespective of whether all files belong to rootDir, the paths should be calculated from rootDir
    
    * Fix the output file names api to use the correct common source directory
    
    * Tests for #41780
    
    * Spelling
    sheetalkamat committed Dec 7, 2020
  3. import statement from "node" in js source file could produce correct …

    …declaration path. (#41816)
    
    * fix #41800
    
    * add test
    
    * fix test
    ShuiRuTian committed Dec 7, 2020

Commits on Dec 6, 2020

  1. Update package-lock.json

    typescript-bot committed Dec 6, 2020

Commits on Dec 5, 2020

  1. Update package-lock.json

    typescript-bot committed Dec 5, 2020
  2. Update accept-baselines-fix-lints.yaml (#41826)

    andrewbranch committed Dec 5, 2020
  3. fix(41295): handle deprecated callbacks (#41310)

    a-tarasyuk committed Dec 5, 2020
Older
You can’t perform that action at this time.