We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b17e558 commit 7d4a253Copy full SHA for 7d4a253
1 file changed
src/vs/editor/contrib/codeAction/codeActionCommands.ts
@@ -130,9 +130,11 @@ export async function applyCodeAction(
130
await commandService.executeCommand(action.command.id, ...(action.command.arguments || []));
131
} catch (err) {
132
const message = asMessage(err);
133
- if (typeof message === 'string') {
134
- notificationService.error(message);
135
- }
+ notificationService.error(
+ typeof message === 'string'
+ ? message
136
+ : nls.localize('applyCodeActionFailed', "An unknown error occurred while applying the code action"));
137
+
138
}
139
140
0 commit comments