MCPcopy Create free account
hub / github.com/REditorSupport/vscode-R / findTargetUri

Function findTargetUri

src/rstudioapi.ts:446–449  ·  view source on GitHub ↗
(id: string | null)

Source from the content-addressed store, hash-verified

444}
445
446function findTargetUri(id: string | null) {
447 return (id === null ?
448 getLastActiveTextEditor().document.uri : Uri.parse(id));
449}
450
451async function reuseOrCreateEditor(targetDocument: TextDocument) {
452 // if there's a known text editor for a Uri, use it. if not, open a new one

Callers 5

documentContextFunction · 0.85
insertOrModifyTextFunction · 0.85
setSelectionsFunction · 0.85
documentSaveFunction · 0.85

Calls 1

getLastActiveTextEditorFunction · 0.85

Tested by

no test coverage detected