Refactoring M5: keyword + project-wide identifier completion; v0.3.0
Five completion tiers in one response: module skeletons (M4, unchanged gate), scope-visible symbols with real kinds, workspace-index names and `define macros (backtick-aware, never inventing punctuation), Verilog/SV keywords (single-source KEYWORDS list factored from the lexer's table, lexing unchanged), and token-harvested project words — comments and strings contribute nothing and get no completions. Candidate tables build with the index over the M1 scope ladder (94 ms / 860 files, ~1.4 MiB); a keystroke answers in ~300 µs, budget-tested. Version 0.3.0 across the workspace and extension, CHANGELOG covers the M1-M5 refactoring layer. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
1 parent
78ba0b8ba6
commit
d8e37086df
18 files changed
+2281
-320
No files matched your search
+11
-11
@@ -12,7 +12,7 @@ Four files, one number. Keep them identical.
|
||||
|
||||
| File | What to change |
|
||||
|---|---|
|
||||
| `Cargo.toml` | `[workspace.package] version` — **all seven crates inherit it** via `version.workspace = true`, so this is the only Rust edit |
|
||||
| `Cargo.toml` | `[workspace.package] version` — **all eight crates inherit it** via `version.workspace = true`, so this is the only Rust edit |
|
||||
| `Cargo.lock` | regenerated by any `cargo` command; run `cargo check --workspace` and commit the result |
|
||||
| `editors/vscode/package.json` | `"version"` |
|
||||
| `editors/vscode/package-lock.json` | `"version"` in **both** places (the top level and the `packages[""]` entry) |
|
||||
@@ -61,9 +61,9 @@ recreated on every run.
|
||||
|
||||
```
|
||||
dist/
|
||||
vfmt-0.2.0-aarch64-apple-darwin
|
||||
vfmt-server-0.2.0-aarch64-apple-darwin
|
||||
vfmt-0.2.0.vsix
|
||||
vfmt-0.3.0-aarch64-apple-darwin
|
||||
vfmt-server-0.3.0-aarch64-apple-darwin
|
||||
vfmt-0.3.0.vsix
|
||||
SHA256SUMS
|
||||
```
|
||||
|
||||
@@ -111,11 +111,11 @@ npx @vscode/vsce package --out ../../dist/vfmt-<version>.vsix
|
||||
|
||||
```bash
|
||||
# the CLI and the server: anywhere on PATH
|
||||
install -m 755 dist/vfmt-0.2.0-aarch64-apple-darwin ~/.local/bin/vfmt
|
||||
install -m 755 dist/vfmt-server-0.2.0-aarch64-apple-darwin ~/.local/bin/vfmt-server
|
||||
install -m 755 dist/vfmt-0.3.0-aarch64-apple-darwin ~/.local/bin/vfmt
|
||||
install -m 755 dist/vfmt-server-0.3.0-aarch64-apple-darwin ~/.local/bin/vfmt-server
|
||||
|
||||
# the editor extension: sideload, no marketplace involved
|
||||
code --install-extension dist/vfmt-0.2.0.vsix
|
||||
code --install-extension dist/vfmt-0.3.0.vsix
|
||||
```
|
||||
|
||||
Publishing the artifacts is a matter of attaching `dist/`'s contents plus
|
||||
@@ -123,8 +123,8 @@ Publishing the artifacts is a matter of attaching `dist/`'s contents plus
|
||||
gate is green:
|
||||
|
||||
```bash
|
||||
git tag -a v0.2.0 -m 'vfmt 0.2.0'
|
||||
git push origin v0.2.0
|
||||
git tag -a v0.3.0 -m 'vfmt 0.3.0'
|
||||
git push origin v0.3.0
|
||||
```
|
||||
|
||||
## Appendix — if the owner ever publishes to a marketplace
|
||||
@@ -151,10 +151,10 @@ The commands themselves, once those exist:
|
||||
# VS Code Marketplace: needs an Azure DevOps PAT for the publisher
|
||||
npx @vscode/vsce publish -p "$VSCE_TOKEN"
|
||||
# ... or publish an already-built package
|
||||
npx @vscode/vsce publish --packagePath dist/vfmt-0.2.0.vsix -p "$VSCE_TOKEN"
|
||||
npx @vscode/vsce publish --packagePath dist/vfmt-0.3.0.vsix -p "$VSCE_TOKEN"
|
||||
|
||||
# Open VSX (VSCodium, Gitpod, Cursor): needs an Eclipse Foundation account
|
||||
npx ovsx publish dist/vfmt-0.2.0.vsix -p "$OVSX_TOKEN"
|
||||
npx ovsx publish dist/vfmt-0.3.0.vsix -p "$OVSX_TOKEN"
|
||||
```
|
||||
|
||||
Both tokens are secrets. Neither belongs in this repo, in a shell history, or
|
||||
|
||||
Reference in new issue
Block a user