Skip to content

Commit

Permalink
docs: use enablePromptUseWorkspaceTsdk vscode setting
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurfiorette committed Mar 11, 2024
1 parent 90e113a commit 2a4ac15
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"cSpell.words": ["KITA"]
}
7 changes: 4 additions & 3 deletions packages/html/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@

## Preview

<img align="center" src="assets/preview.png" alt="Example of an error thrown by this LSP plugin." />
<img align="center" src="assets/preview.png" alt="Sample of generating html tags with jsx syntax." />

<br />

Expand Down Expand Up @@ -133,7 +133,8 @@ To use the `@kitajs/html` package, follow these steps:
// .vscode/settings.json

{
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
```

Expand Down Expand Up @@ -268,7 +269,7 @@ where it's needed.
## Editor Intellisense and CLI tool

<p align="center">
<img align="center" src="https://github.com/kitajs/html/tree/master/packages/ts-html-plugin/blob/main/assets/preview.png?raw=true" alt="Example of an error thrown by @kitajs/ts-html-plugin." width="75%" />
<img align="center" src="../ts-html-plugin/assets/preview.png" alt="Example of an error thrown by @kitajs/ts-html-plugin." width="75%" />
</p>

<h2>⚠️</h2>
Expand Down
3 changes: 2 additions & 1 deletion packages/ts-html-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ current project's typescript version.
// .vscode/settings.json
{
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true
}
```
Expand Down

0 comments on commit 2a4ac15

Please sign in to comment.