Skip to content

Commit

Permalink
fix: set code action kinds to avoid warning
Browse files Browse the repository at this point in the history
  • Loading branch information
KazariEX committed Dec 28, 2024
1 parent 73b4c2b commit 3bb1476
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/language-service/lib/plugins/vue-extract-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ export function create(
name: 'vue-extract-file',
capabilities: {
codeActionProvider: {
codeActionKinds: ['refactor'],
resolveProvider: true,
},
},
create(context) {
const tsPluginClient = getTsPluginClient?.(context);
return {
provideCodeActions(document, range, _context) {
provideCodeActions(document, range) {

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

0 comments on commit 3bb1476

Please sign in to comment.