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.
scopeName
1 parent e9a20ba commit 5f90391Copy full SHA for 5f90391
src/Providers/CodeActionsProvider.ts
@@ -54,6 +54,19 @@ export const CodeActionsProvider: vscode.CodeActionProvider = {
54
edit: edit,
55
};
56
break;
57
+ case 'scopeName': {
58
+ const scopeName = message.split("'")[3];
59
+
60
+ edit.replace(document.uri, diagnostic.range, scopeName);
61
+ codeAction = {
62
+ title: `Change spelling to '${scopeName}'`,
63
+ kind: vscode.CodeActionKind.QuickFix,
64
+ diagnostics: [diagnostic],
65
+ isPreferred: true,
66
+ edit: edit,
67
+ };
68
+ break;
69
+ }
70
case 'property':
71
const property = message.split("'")[1].replaceAll(/[ _-]+/g, '').toLowerCase();
72
if (property.length < 2) {
0 commit comments