Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adds WebStorm documentation
  • Loading branch information
arcanis authored Sep 13, 2023
commit 89d9e4e4c7e0843318303f8d0e48cd28429577b5
16 changes: 16 additions & 0 deletions packages/docusaurus/docs/getting-started/extra/editor-sdks.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,19 @@ yarn dlx @yarnpkg/sdks vscode
3. Pick "Use Workspace Version"

Your VSCode project is now configured to use the exact same version of TypeScript as the one you usually use, except that it will be able to properly resolve the type definitions.

### WebStorm / IntelliJ

Most of the configuration should be automatically picked by WebStorm. However, a bug in the IDE may cause issue with Yarn PnP when the TypeScript version is 5.x or higher. The following is a workaround until [WEB-62221](https://youtrack.jetbrains.com/issue/WEB-62221/TypeScript-service-doesnt-work-with-yarn-pnp-when-typescript-version-is-5.x-or-higher) is fixed (the WebStorm teams are aware and signaled working on it).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Most of the configuration should be automatically picked by WebStorm. However, a bug in the IDE may cause issue with Yarn PnP when the TypeScript version is 5.x or higher. The following is a workaround until [WEB-62221](https://youtrack.jetbrains.com/issue/WEB-62221/TypeScript-service-doesnt-work-with-yarn-pnp-when-typescript-version-is-5.x-or-higher) is fixed (the WebStorm teams are aware and signaled working on it).
Most of the configuration should be automatically picked by WebStorm. However, a bug in the IDE may cause issue with Yarn PnP when the TypeScript version is 5.x or higher. The following is a workaround until [WEB-62221](https://youtrack.jetbrains.com/issue/WEB-62221/TypeScript-service-doesnt-work-with-yarn-pnp-when-typescript-version-is-5.x-or-higher) is fixed (the WebStorm team is aware and has signaled they are working on it).

Just grammar tweaks


1. Run the following command:

```bash
yarn dlx @yarnpkg/sdks base
```

2. In Settings, go to `Preferences | Languages & Frameworks | TypeScript`

3. Change the TypeScript path to point to the `.yarn/sdks/typescript` directory in the root of your project

4. Also make sure "Show project errors" is enabled