Skip to content

feat(vscode): improve override mechanism#471

Closed
luxass wants to merge 2657 commits intomainfrom
vscode-better-override
Closed

feat(vscode): improve override mechanism#471
luxass wants to merge 2657 commits intomainfrom
vscode-better-override

Conversation

@luxass
Copy link
Copy Markdown
Member

@luxass luxass commented Jan 15, 2026

🔗 Linked issue

📚 Description

- Introduced `toMatchError` matcher for enhanced error assertions.
- Updated `vitest-setup.ts` to include the new matcher.
- Modified `tsdown.config.ts` and `base.json` to reference new matcher files.
- Adjusted `vitest.config.ts` to include the new matcher setup file.
delete obsolete .cta.json file as it is no longer needed for the web application configuration.
Updated the header constant to better reflect its purpose and ensure consistency across the codebase. Adjusted all relevant imports and usages in the API routes and tests.
Introduce `FetchSchemaValidationError` to handle schema validation errors specifically. Update `createCustomFetch` to throw this error when response validation fails, preserving context and issues for better debugging. Update type definitions to accommodate the new error type.
- Introduced `FetchSchemaValidationError` for better error categorization.
- Added tests for various error response scenarios to ensure robust validation.
- Updated existing tests to reflect changes in error handling logic.
luxass added 23 commits January 15, 2026 16:49
- Changed the default `BASE_URL` for the HTTP fs-bridge to point to `ucd-store.ucdjs.dev`.
- Modified path handling in test cases to ensure correct directory structure during listing operations.
- Introduced `ucd.open-in-remote-explorer`, `ucd.open-on-unicode`, and `ucd.open-explorer-entry` commands.
- Updated command titles and descriptions in `README.md`.
- Enhanced `package.json` with new command configurations.
- Added `frontend-url` configuration option for better URL handling.
- Refactored `useUCDExplorer` to include `filePath` in UCD item structure.
- Added `useUCDClient` composable to manage UCD client lifecycle.
- Updated `UCDContentProvider` to utilize the UCD client for fetching content.
- Registered `useUCDClient` in the extension activation process.
- Replaced `ucd.visualize-file` with `ucd.inspect-file` in the command structure.
- Implemented the `useInspectFileCommand` to allow inspection of UCD files.
- Created `useInspectorView` for displaying inspection results.
- Added HTML generation for displaying UCD statistics.
- Introduced new pickers for selecting Unicode versions and files.
- Removed the unused `visualize-file` command.
Added functions to generate Markdown hover messages for code points, ranges, properties, names, values, and comments in the UCD decorations. This improves the user experience by providing more context and information directly in the editor.
- Implemented `ucd.generate-override` command to facilitate the creation of parser overrides.
- Updated command registration and README documentation.
- Introduced `useOverrideGenerator` composable for managing selection and generating overrides.
- Added HTML generation for user interface during heading selection.
- Created schema types for parser overrides to ensure type safety and validation.
- Removed `applyMockDecorations` and replaced it with `useAutoDecorations` for automatic decoration application based on file type.
- Introduced new hover information for Unicode properties, code points, ranges, and metadata.
- Enhanced the inspector view with improved HTML structure and styling for better readability.
- Added support for selection mode in the override generator, allowing users to set start and end lines interactively.
- Created a new syntax highlighting file for UCD to improve code readability.

This update enhances the user experience by providing contextual information and visual cues directly in the editor.
- Introduced `ucd-selection` view for enhanced selection capabilities.
- Updated command execution to focus on the new selection view.
- Removed unused selection HTML generation code and refactored related components.
- Added `routeTree.gen.ts` for automatic route generation.
- Created `router.tsx` to initialize the router with context and scroll restoration.
- Developed dynamic route handling in `routes/$` for Fumadocs integration.
- Established root route in `routes/__root.tsx` with meta tags and devtools.
- Implemented API search functionality in `routes/api/search.ts`.
- Set up index route redirection in `routes/index.tsx`.
- Configured TypeScript settings in `tsconfig.json`.
- Integrated Vite configuration in `vite.config.ts` for enhanced development experience.
- Added `wrangler.jsonc` for Cloudflare Workers configuration.
- Updated package dependencies in `package.json` and `pnpm-lock.yaml`.
- Added new entries to `.gitignore` for `.output` and `.tanstack`.
- Removed unused `.cta.json` and `.gitignore` files from `apps/docs`.
- Introduced a new `eslint.config.js` file for linting configuration.
- Updated `package.json` to include `@luxass/eslint-config` and `eslint` dependencies.
- Modified documentation links in `not-found.tsx` to point to the new documentation site.
This will be changed a bit, this code is pretty much written by AI.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 15, 2026

⚠️ No Changeset found

Latest commit: 57ef526

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 15, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown
Contributor

🌏 Preview Deployments

Note

No deployable apps affected by changes in this PR.

Built from commit: 57ef526b39d1f957d095d85123892b76e4dac4f4


🤖 This comment will be updated automatically when you push new commits to this PR.

import type { SectionId, SectionState } from "../lib/override-schema";
import { computed, createSingletonComposable, useWebviewView, watchEffect } from "reactive-vscode";
import { env, window } from "vscode";
import { getSectionDefinition, SECTION_DEFINITIONS } from "../lib/override-schema";
Comment on lines +5 to +12
import {
createInitialSectionStates,
createParserOverride,
getSectionDefinition,
isSectionSelectionValid,
SECTION_DEFINITIONS,
serializeOverride,
} from "../lib/override-schema";
@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 15, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant