Skip to content

Commit 90b1747

Browse files
committed
vs-code extension is published to the marketplace.
1 parent 30a90ff commit 90b1747

6 files changed

Lines changed: 33 additions & 6 deletions

File tree

‎frontend/purestack.studio/guides/index.mdx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ These guides follow the path from a content folder to a finished interface. Star
3030
<h2 class="mt-0">VS Code extension</h2>
3131
<p>Find component source, complete props and frontmatter, and format markup on save.</p>
3232
<BtnLink href="/guides/vscode-extension/" tone="accent" variant="link">Set up the editor</BtnLink>
33+
<BtnLink href="https://marketplace.visualstudio.com/items?itemName=purestack.purestack-component-navigation" tone="accent" variant="link">Install from Marketplace</BtnLink>
3334
</Panel>
3435
<Panel tone="neutral" bodyClass="p-3">
3536
<h2 class="mt-0">Regor</h2>

‎frontend/purestack.studio/guides/vscode-extension.mdx‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,27 @@ nav:
1515

1616
PureStack Component Tools brings component knowledge into VS Code. As you write a page or a Regor template, it can suggest component names and props, open their declarations, explain frontmatter fields, format markup on save, and mark broken HTML structure.
1717

18-
## Install from the repository
18+
## Install from the Marketplace
1919

20-
The extension is currently packaged locally. Use VS Code 1.85 or newer, then run this command from a PureStack repository checkout:
20+
Use VS Code 1.85 or newer and install [PureStack Component Tools from the Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=purestack.purestack-component-navigation). You can also open the Extensions view with **Ctrl+Shift+X**, search for **PureStack Component Tools**, and click **Install** on the extension published by `purestack`.
21+
22+
To install from a terminal:
23+
24+
```sh
25+
code --install-extension purestack.purestack-component-navigation
26+
```
27+
28+
Open your project folder after installation. The extension uses your project's TypeScript installation when available and otherwise uses its bundled TypeScript runtime.
29+
30+
## Build from source
31+
32+
To develop the extension or install a local build, run this command from a PureStack repository checkout:
2133

2234
```sh
2335
yarn pack-vscode-ext
2436
```
2537

26-
In VS Code, run **Extensions: Install from VSIX...** from the Command Palette and select the generated `.vsix` in `packages/ts-ssg-vscode/`. Reload the window and open your project folder. The project must have `typescript` installed so the extension can resolve its TypeScript runtime. For extension development, the [source README](https://github.com/PureStackStudio/PureStack/tree/main/packages/ts-ssg-vscode) also describes the Extension Development Host workflow.
38+
In VS Code, run **Extensions: Install from VSIX...** from the Command Palette and select the generated `.vsix` in `packages/ts-ssg-vscode/`. Reload the window and open your project folder. The [source README](https://github.com/PureStackStudio/PureStack/tree/main/packages/ts-ssg-vscode) also describes the Extension Development Host workflow.
2739

2840
## Pick the right file
2941

‎frontend/purestack.studio/index.mdx‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,10 @@ card.<span class="syntax-blue">toCSS</span>()</code></pre>
340340
><span class="syntax-muted">&gt;</span><span class="editor-caret"></span
341341
><small><Icon name="tabler:check"/>SemanticTone</small>
342342
</div>
343+
<BtnLink
344+
href="https://marketplace.visualstudio.com/items?itemName=purestack.purestack-component-navigation"
345+
tone="accent"
346+
variant="link">Install the VS Code extension</BtnLink>
343347
</StudioFeature>
344348
</Grid>
345349
</section>

‎packages/ts-components/src/standard/virtualList/variableMeasurement.test.ts‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ describe('variable row measurements', () => {
6565
throw new Error('Measurement did not settle')
6666
}
6767
let context: VariableVirtualList | VariableVirtualTable | undefined
68-
const recordContext = <T extends VariableVirtualList | VariableVirtualTable>(
68+
const recordContext = <
69+
T extends VariableVirtualList | VariableVirtualTable,
70+
>(
6971
candidate: Component<T>,
7072
) => {
7173
const original = candidate.context
@@ -79,7 +81,9 @@ describe('variable row measurements', () => {
7981
const component =
8082
kind === 'list'
8183
? recordContext(defineVirtualListComponents().variableVirtualList)
82-
: recordContext(defineVariableVirtualTableComponents().variableVirtualTable)
84+
: recordContext(
85+
defineVariableVirtualTableComponents().variableVirtualTable,
86+
)
8387
const viewportHeight = ref(160)
8488
let rowMounts = 0
8589
const app = createApp(

‎packages/ts-ssg-vscode/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# PureStack Component Tools
22

3+
[Website](https://purestack.studio) · [GitHub Source](https://github.com/PureStackStudio/PureStack/tree/main/packages/ts-ssg-vscode)
4+
35
PureStack Component Tools turns VS Code into a real authoring environment for PureStack and Regor.
46

57
It understands component tags in Markdown and MDX, understands Regor markup inside TypeScript `html` and `svg` tagged templates, and adds the editing behavior that makes those files feel first-class instead of “HTML inside a string”.

‎packages/ts-ssg-vscode/package.json‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@
44
"description": "Component navigation, prop IntelliSense, lit-html syntax highlighting, and template formatting for Markdown, Regor MDX, and TypeScript templates.",
55
"version": "1.1.0",
66
"private": true,
7-
"publisher": "purestack-local",
7+
"publisher": "purestack",
88
"license": "MIT",
9+
"homepage": "https://purestack.studio",
10+
"bugs": {
11+
"url": "https://github.com/PureStackStudio/PureStack/issues"
12+
},
913
"repository": {
1014
"type": "git",
1115
"url": "git+https://github.com/PureStackStudio/PureStack.git",

0 commit comments

Comments
 (0)