| 12 | import type { Plugin } from 'vite' |
| 13 | |
| 14 | export interface MonacoEditorFeaturesOptions { |
| 15 | /** |
| 16 | * Editor contrib features to keep. |
| 17 | * Names correspond to the folder name under `vs/editor/contrib/`, e.g. |
| 18 | * `'find'`, `'folding'`, `'clipboard'`, `'comment'`. |
| 19 | * |
| 20 | * The following are always included regardless of this list: |
| 21 | * - core commands & widgets (coreCommands, codeEditorWidget, diffEditor) |
| 22 | * - codicon CSS |
| 23 | * - standaloneStrings |
| 24 | * |
| 25 | * If omitted or empty, **all** features are kept (no stripping). |
| 26 | */ |
| 27 | features?: string[] |
| 28 | } |
| 29 | |
| 30 | const MONACO_LANG_RE = /monaco-editor[\\/]esm[\\/]vs[\\/]basic-languages[\\/]/ |
| 31 |
nothing calls this directly
no outgoing calls
no test coverage detected