angular/packages
Andrew Scott 08482f2c7d fix(language-service): Retain correct language service when ts.Project reloads (#51912)
When the `ts.Project` creates the language service plugin (in this case,
the Angular Language Service), it sets the project's language service to
the new language service returned by the plugin create:
https://sourcegraph.com/github.com/microsoft/TypeScript@b12af0fa2bbd4b015e59adcfb49988cea7f919a1/-/blob/src/server/project.ts?L2035-2044

The project may be reloaded in response to various events, such as a
change to the tsconfig file, which then recreates the plugin. When this
happens, the language service that gets passed to the plugin `create`
function will not be the typescript language service, but rather the
previous instance of the new language service returned by the last call
to `create`.

This commit ensures that subsequent calls to `create` for the
`NgLanguageService` plugin for a project after the first call are able
to retrieve and hold on to the _TypeScript_ language service.

fixes https://github.com/angular/vscode-ng-language-service/issues/1923

PR Close #51912
2023-10-04 11:27:43 -07:00
..
animations test(animations): update the integration test (#50738) 2023-09-29 10:49:41 -07:00
bazel feat(core): enable block syntax (#51994) 2023-10-03 15:26:05 -07:00
benchpress docs: updated the benchpress readme doc (#51110) 2023-07-21 16:43:30 +00:00
common refactor(common): update NgTemplateOutlet to no longer rely on context swapping (#51887) 2023-10-04 08:14:35 -07:00
compiler refactor(compiler): Don't emit properties on structural ng-templates (#51950) 2023-10-04 09:00:54 -07:00
compiler-cli refactor(compiler): Enable passing and nearly-passing Template Pipeline tests (#51950) 2023-10-04 09:00:54 -07:00
core refactor(core): allow nested @defer block to contain the same dependency (#51964) 2023-10-04 09:00:23 -07:00
docs/di docs: remove outdated/unsupported webworker doc (#49856) 2023-04-17 14:01:41 +00:00
elements build: remove support for Node.js v16 (#51755) 2023-09-13 10:49:06 -07:00
examples build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
forms refactor(forms): Use the Writable type when overwriting readonly properties. (#49754) 2023-09-22 10:02:13 -07:00
language-service fix(language-service): Retain correct language service when ts.Project reloads (#51912) 2023-10-04 11:27:43 -07:00
localize feat(core): implement new block syntax (#51891) 2023-09-26 09:10:04 -07:00
misc/angular-in-memory-web-api docs: update invalid links to the new http guides (#49456) 2023-06-22 17:06:59 -07:00
platform-browser feat(animations): Add the possibility of lazy loading animations code. (#50738) 2023-09-29 10:49:39 -07:00
platform-browser-dynamic build: remove support for Node.js v16 (#51755) 2023-09-13 10:49:06 -07:00
platform-server feat(core): enable block syntax (#51994) 2023-10-03 15:26:05 -07:00
private/testing fix(platform-server): bundle @angular/domino in via esbuild (#49229) 2023-02-28 13:34:50 -08:00
router fix(router): Allow redirects after an absolute redirect (#51731) 2023-09-26 10:59:20 -07:00
service-worker fix(service-worker): throw a critical error when handleFetch fails (#51960) 2023-10-04 08:50:50 -07:00
upgrade build: remove support for Node.js v16 (#51755) 2023-09-13 10:49:06 -07:00
zone.js build: update cross-repo angular dependencies (#51996) 2023-10-03 08:07:48 -07:00
BUILD.bazel build(bazel): list docs entrypoints under packages to simplify docgen 2022-11-22 13:51:16 -07:00
circular-deps-test.conf.js build: ignore type only imports/exports for circular dependency checks (#47017) 2022-08-18 12:06:09 -07:00
empty.ts
goog.d.ts refactor(core): replace references to goog.LOCALE with goog.getLocale() (#43089) 2021-08-10 10:35:26 -07:00
license-banner.txt build: bump license year (#44590) 2022-01-04 12:05:25 -08:00
README.md
system.d.ts
tsconfig-build.json build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
tsconfig-legacy-saucelabs.json refactor(compiler): drop obsolete NgFactory and NgSummary config options (#48268) 2023-02-21 13:03:59 -08:00
tsconfig-test.json build: switch devmode output to es2015 (#44505) 2022-01-05 23:20:20 +00:00
tsconfig-tsec-base.json refactor(core): throw an error when hydration marker is missing from DOM (#51170) 2023-08-04 11:31:49 -04:00
tsconfig.json build: align with internal tsconfig options (#51728) 2023-09-12 11:39:42 -07:00
tsec-exemption.json fix(core): hardening attribute and property binding rules for <iframe> elements (#47964) 2022-11-09 00:47:56 -08:00
types.d.ts build: update to jasmine 4.0 (#45558) 2022-04-11 16:25:28 +00:00

Angular

The sources for this package are in the main Angular repo. Please file issues and pull requests against that repo.

Usage information and reference details can be found in Angular documentation.

License: MIT