Skip to content

Commit

Permalink
fix: context.only
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 31, 2024
1 parent 3bb1476 commit c29a499
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/language-service/lib/plugins/vue-extract-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ export function create(
create(context) {
const tsPluginClient = getTsPluginClient?.(context);
return {
provideCodeActions(document, range) {
provideCodeActions(document, range, ctx) {

if (ctx.only && !ctx.only.includes('refactor')) {
return;
}

const startOffset = document.offsetAt(range.start);
const endOffset = document.offsetAt(range.end);
Expand Down

0 comments on commit c29a499

Please sign in to comment.