We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d76d11 commit 7eafbb2Copy full SHA for 7eafbb2
packages/language-service/lib/plugins/vue-extract-file.ts
@@ -21,13 +21,18 @@ export function create(
21
name: 'vue-extract-file',
22
capabilities: {
23
codeActionProvider: {
24
+ codeActionKinds: ['refactor'],
25
resolveProvider: true,
26
},
27
28
create(context) {
29
const tsPluginClient = getTsPluginClient?.(context);
30
return {
- provideCodeActions(document, range, _context) {
31
+ provideCodeActions(document, range, ctx) {
32
+
33
+ if (ctx.only && !ctx.only.includes('refactor')) {
34
+ return;
35
+ }
36
37
const startOffset = document.offsetAt(range.start);
38
const endOffset = document.offsetAt(range.end);
0 commit comments