Skip to content

Commit 2a4ac15

Browse files
docs: use enablePromptUseWorkspaceTsdk vscode setting
1 parent 90e113a commit 2a4ac15

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.vscode/settings.json

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
3+
"typescript.enablePromptUseWorkspaceTsdk": true,
34
"cSpell.words": ["KITA"]
45
}

packages/html/README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777

7878
## Preview
7979

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

8282
<br />
8383

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

135135
{
136-
"typescript.tsdk": "node_modules/typescript/lib"
136+
"typescript.tsdk": "node_modules/typescript/lib",
137+
"typescript.enablePromptUseWorkspaceTsdk": true
137138
}
138139
```
139140

@@ -268,7 +269,7 @@ where it's needed.
268269
## Editor Intellisense and CLI tool
269270

270271
<p align="center">
271-
<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%" />
272+
<img align="center" src="../ts-html-plugin/assets/preview.png" alt="Example of an error thrown by @kitajs/ts-html-plugin." width="75%" />
272273
</p>
273274

274275
<h2>⚠️</h2>

packages/ts-html-plugin/README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ current project's typescript version.
170170
// .vscode/settings.json
171171
172172
{
173-
"typescript.tsdk": "node_modules/typescript/lib"
173+
"typescript.tsdk": "node_modules/typescript/lib",
174+
"typescript.enablePromptUseWorkspaceTsdk": true
174175
}
175176
```
176177

0 commit comments

Comments
 (0)