Skip to content

Commit

Permalink
Update vue-template.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
so1ve committed May 6, 2024
1 parent 2b35849 commit 4981687
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/language-service/lib/plugins/vue-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ export function create(
return [];
}
let ctxVars = [
...[..._tsCodegen.scriptRanges()?.bindings.bindingRanges.values() ?? []].map(binding => vueCode.sfc.script!.content.substring(binding.start, binding.end)) ?? [],
...[..._tsCodegen.scriptSetupRanges()?.bindings.bindingRanges.values() ?? []].map(binding => vueCode.sfc.scriptSetup!.content.substring(binding.start, binding.end)) ?? [],
..._tsCodegen.scriptRanges()?.bindings.bindingRange.map(binding => vueCode.sfc.script!.content.substring(binding.start, binding.end)) ?? [],

Check failure on line 504 in packages/language-service/lib/plugins/vue-template.ts

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Property 'bindingRange' does not exist on type '{ bindingRanges: TextRange[]; bindingTypes: Map<string, BindingTypes>; }'. Did you mean 'bindingRanges'?

Check failure on line 504 in packages/language-service/lib/plugins/vue-template.ts

View workflow job for this annotation

GitHub Actions / build (18, macos-latest)

Parameter 'binding' implicitly has an 'any' type.

Check failure on line 504 in packages/language-service/lib/plugins/vue-template.ts

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Property 'bindingRange' does not exist on type '{ bindingRanges: TextRange[]; bindingTypes: Map<string, BindingTypes>; }'. Did you mean 'bindingRanges'?

Check failure on line 504 in packages/language-service/lib/plugins/vue-template.ts

View workflow job for this annotation

GitHub Actions / build (18, ubuntu-latest)

Parameter 'binding' implicitly has an 'any' type.
..._tsCodegen.scriptSetupRanges()?.bindings.bindingRanges.map(binding => vueCode.sfc.scriptSetup!.content.substring(binding.start, binding.end)) ?? [],
...templateContextProps,
];
ctxVars = [...new Set(ctxVars)];
Expand Down

0 comments on commit 4981687

Please sign in to comment.