MCPcopy
hub / github.com/facebook/react / getOpenInEditorURL

Function getOpenInEditorURL

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

Source from the content-addressed store, hash-verified

511}
512
513export function getOpenInEditorURL(): string {
514 try {
515 const rawPreset = localStorageGetItem(
516 LOCAL_STORAGE_OPEN_IN_EDITOR_URL_PRESET,
517 );
518 switch (rawPreset) {
519 case '"vscode"':
520 return vscodeFilepath;
521 }
522 const raw = localStorageGetItem(LOCAL_STORAGE_OPEN_IN_EDITOR_URL);
523 if (raw != null) {
524 return JSON.parse(raw);
525 }
526 } catch (error) {}
527 return getDefaultOpenInEditorURL();
528}
529
530export function getAlwaysOpenInEditor(): boolean {
531 try {

Callers 1

index.jsFile · 0.90

Calls 2

localStorageGetItemFunction · 0.90

Tested by

no test coverage detected