mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-01-08 18:09:13 +00:00
25 lines
490 B
TypeScript
25 lines
490 B
TypeScript
/**
|
|
* @license
|
|
* Copyright 2025 Google LLC
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
import {
|
|
CommandKind,
|
|
type OpenDialogActionReturn,
|
|
type SlashCommand,
|
|
} from './types.js';
|
|
import { t } from '../../i18n/index.js';
|
|
|
|
export const editorCommand: SlashCommand = {
|
|
name: 'editor',
|
|
get description() {
|
|
return t('set external editor preference');
|
|
},
|
|
kind: CommandKind.BUILT_IN,
|
|
action: (): OpenDialogActionReturn => ({
|
|
type: 'dialog',
|
|
dialog: 'editor',
|
|
}),
|
|
};
|