Skip to content

Commit 214f98b

Browse files
committed
refactor: improved json code intelligence doc
1 parent 298b7cc commit 214f98b

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

docs/07-Code Intelligence/03-json.md

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ slug: "/Features/json-code-intelligence"
55

66
**Phoenix Code** has code intelligence for JSON files, with extra features for `package.json`.
77

8-
## npm Package Hints
8+
## package.json
99

1010
When you edit the dependencies in `package.json`:
1111

1212
- Typing a package name shows live suggestions from the npm registry.
1313
- Typing a version shows the package's real versions, newest first, with `^` and `~` shortcuts at the top.
14+
- Hovering over a dependency shows the package's description, latest version, license, and links to its homepage and docs.
1415

1516
<!-- TODO: PLUTO - add image here showing npm package hints in package.json -->
1617

17-
## Dependency Hover
18-
19-
Hover over a dependency to see the package's description, latest version, license, and links to its homepage and docs.
20-
21-
## Vulnerability Warnings
22-
23-
Your dependencies are checked against npm's security advisories, the same data `npm audit` uses. If a dependency has a known vulnerability, it is underlined in the editor and listed in the [Problems panel](/docs/Features/Problems%20Panel/ESLint) with its severity.
18+
Your dependencies are also checked against npm's security advisories, the same data `npm audit` uses. If a dependency has a known vulnerability, it is underlined in the editor and listed in the [Problems panel](/docs/Features/Problems%20Panel/ESLint) with its severity.
2419

2520
<!-- TODO: PLUTO - add image here showing a vulnerability warning -->
2621

@@ -29,5 +24,5 @@ Your dependencies are checked against npm's security advisories, the same data `
2924
Phoenix Code knows the valid fields of well-known config files like `package.json`, `tsconfig.json`, `.eslintrc`, `.babelrc`, and `.prettierrc`. It suggests fields as you type, shows what each field means on hover, and flags mistakes in the Problems panel.
3025

3126
:::info
32-
Config file intelligence runs in the desktop app. The npm hints, hover, and vulnerability warnings work everywhere.
27+
Config file intelligence runs in the desktop app. The `package.json` features work everywhere.
3328
:::

0 commit comments

Comments
 (0)