MCPcopy Index your code
hub / github.com/react/react / getDefaultPreset

Function getDefaultPreset

packages/react-devtools-shared/src/utils.js:503–505  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

501const vscodeFilepath = 'vscode://file/{path}:{line}:{column}';
502
503export function getDefaultPreset(): 'custom' | 'vscode' {
504 return typeof process.env.EDITOR_URL === 'string' ? 'custom' : 'vscode';
505}
506
507export function getDefaultOpenInEditorURL(): string {
508 return typeof process.env.EDITOR_URL === 'string'

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected