mirror of
https://github.com/apache/superset.git
synced 2026-08-05 13:32:41 +00:00
feat(build): migrate from Prettier to Oxfmt for performant code formatting (#42434)
This commit is contained in:
@@ -106,7 +106,11 @@ This example adds primary, secondary, and context actions to the editor:
|
||||
import { commands, menus, sqlLab } from '@apache-superset/core';
|
||||
|
||||
commands.registerCommand(
|
||||
{ id: 'my-extension.format', title: 'Format Query', icon: 'FormatPainterOutlined' },
|
||||
{
|
||||
id: 'my-extension.format',
|
||||
title: 'Format Query',
|
||||
icon: 'FormatPainterOutlined',
|
||||
},
|
||||
async () => {
|
||||
const tab = sqlLab.getCurrentTab();
|
||||
if (tab) {
|
||||
|
||||
Reference in New Issue
Block a user