angular-docs-cn/packages
Keen Yee Liau 0264f76e94 fix(language-service): LSParseConfigHost.resolve should not concat abs paths (#40242)
`ts.server.ServerHost.resolvePath()` is different from Angular's
`FileSystem.resolve()` because the signature of the former is

```ts
resolvePath(path: string): string;	// ts.server.ServerHost
```

whereas the signature of the latter is
```ts
resolve(...paths: string[]): AbsoluteFsPath; // FileSystem on compiler-cli
```

The current implementation calls `path.join()` to concatenate all the input
paths and pass the result to `ts.server.ServerHost.resolvePath()`, but doing
so results in filenames like
```
/foo/bar/baz/foo/bar/baz/tsconfig.json
```
if both input paths are absolute.

`ts.server.ServerHost` should not be used to implement the
`resolve()` method expected by Angular's `FileSystem`.
We should use Node's `path.resolve()` instead, which will correctly collapse
the absolute paths.

Fix https://github.com/angular/vscode-ng-language-service/issues/1035

PR Close #40242
2021-01-06 10:54:40 -08:00
..
animations fix(animations): implement getPosition in browser animation builder (#39983) 2020-12-08 16:24:41 -08:00
bazel
benchpress
common fix(router): Router should focus element after scrolling (#40241) 2021-01-05 09:48:48 -08:00
compiler fix(compiler): incorrectly encapsulating selectors with escape sequences (#40264) 2021-01-06 10:33:49 -08:00
compiler-cli fix(language-service): include compilerOptions.rootDir in rootDirs (#40243) 2021-01-06 10:54:11 -08:00
core fix(core): ensure sanitizer works if DOMParser return null body (#40107) 2021-01-06 10:32:24 -08:00
docs
elements
examples
forms docs(forms): typo word "property" was missing (#40323) 2021-01-06 08:44:03 -08:00
language-service fix(language-service): LSParseConfigHost.resolve should not concat abs paths (#40242) 2021-01-06 10:54:40 -08:00
localize fix(localize): ensure extracted messages are serialized in a consistent order (#40192) 2021-01-05 10:10:43 -08:00
misc/angular-in-memory-web-api
platform-browser fix(animations): implement getPosition in browser animation builder (#39983) 2020-12-08 16:24:41 -08:00
platform-browser-dynamic
platform-server
private/testing
router docs(router): Clarify 'parent' for params inheritance (#40304) 2021-01-05 13:54:41 -08:00
service-worker fix(service-worker): handle error with ErrorHandler (#39990) 2020-12-08 12:03:27 -08:00
upgrade fix(upgrade): fix HMR for hybrid applications (#40045) 2020-12-10 13:40:53 -08:00
zone.js build: update to use npm_package.pack rule (#39636) 2020-12-14 11:29:33 -08:00
BUILD.bazel
README.md
circular-deps-test.conf.js
empty.ts
goog.d.ts
license-banner.txt
system.d.ts
tsconfig-build-no-strict.json
tsconfig-build.json
tsconfig-test.json
tsconfig.json
types.d.ts

README.md

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