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

Function getActiveFileWorkspaceFolder

src/util.ts:178–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

176}
177
178function getActiveFileWorkspaceFolder(): vscode.WorkspaceFolder | undefined {
179 const currentDocument = vscode.window.activeTextEditor;
180 if (currentDocument !== undefined) {
181 return vscode.workspace.getWorkspaceFolder(currentDocument.document.uri);
182 }
183}
184
185export function getCurrentWorkspaceFolder(): vscode.WorkspaceFolder | undefined {
186 if (vscode.workspace.workspaceFolders !== undefined) {

Callers 2

substituteVariablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected