8000 fix(volar): remove unused patch code by zhiyuanzmj · Pull Request #935 · vue-macros/vue-macros · GitHub
[go: up one dir, main page]

Skip to content

fix(volar): remove unused patch code #935

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 19, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(volar): remove unused patch code
  • Loading branch information
zhiyuanzmj committed Mar 19, 2025
commit 2fbdfcc0a6c06a25edfc58d9dec12133dd26db69
2 changes: 0 additions & 2 deletions packages/volar/src/jsx-directive/v-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
ctxMap: Map<JsxDirective['node'], string>,
options: TransformOptions,
) {
const { codes, ts, source, ast, prefix } = options

Check failure on line 25 in packages/volar/src/jsx-directive/v-model.ts

View workflow job for this annotation

GitHub Actions / lint

'ast' is assigned a value but never used
let firstNamespacedNode:
| {
attribute: JsxDirective['attribute']
Expand Down Expand Up @@ -214,8 +214,6 @@
...emitsResult,
`}}`,
)
// Fix `v-model:` without type hints
replaceSourceRange(codes, source, end, end + 1, ast.text.slice(end, end + 1))
}

function getModelsType(codes: Code[]) {
Expand Down
8 changes: 0 additions & 8 deletions packages/volar/src/jsx-directive/v-slot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,14 +159,6 @@ export function transformVSlot(
vSlotAttribute.end,
...result,
)
// Fix `v-slot:` without type hints
replaceSourceRange(
codes,
source,
vSlotAttribute.end,
vSlotAttribute.end + 1,
ast.text.slice(vSlotAttribute.end, vSlotAttribute.end + 1),
)
} else if (ts.isJsxElement(node)) {
replaceSourceRange(
codes,
Expand Down
Loading
0