MCPcopy
hub / github.com/conwnet/github1s / commandOpenOnlineEditor

Function commandOpenOnlineEditor

extensions/github1s/src/commands/global.ts:70–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68};
69
70const commandOpenOnlineEditor = async () => {
71 const currentScheme = adapterManager.getCurrentScheme();
72 const onlineEditorPath = ['github1s', 'ossinsight'].includes(currentScheme) ? '/editor' : '/';
73 const targetLink = vscode.Uri.parse((await router.href()) || '').with({ path: onlineEditorPath });
74 return vscode.commands.executeCommand('vscode.open', targetLink);
75};
76
77const commandRefreshRepository = async () => {
78 if (['github1s', 'gitlab1s'].includes(adapterManager.getCurrentScheme())) {

Callers

nothing calls this directly

Calls 2

getCurrentSchemeMethod · 0.80
hrefMethod · 0.80

Tested by

no test coverage detected