(extensionPath: string)
| 68 | let activeBrowserExternalUri: Uri | undefined; |
| 69 | |
| 70 | export function deploySessionWatcher(extensionPath: string): void { |
| 71 | console.info(`[deploySessionWatcher] extensionPath: ${extensionPath}`); |
| 72 | resDir = path.join(extensionPath, 'dist', 'resources'); |
| 73 | |
| 74 | const initPath = path.join(extensionPath, 'R', 'session', 'init.R'); |
| 75 | const linkPath = path.join(homeExtDir(), 'init.R'); |
| 76 | fs.writeFileSync(linkPath, `local(source("${initPath.replace(/\\/g, '\\\\')}", chdir = TRUE, local = TRUE))\n`); |
| 77 | |
| 78 | writeSettings(); |
| 79 | workspace.onDidChangeConfiguration(event => { |
| 80 | if (event.affectsConfiguration('r')) { |
| 81 | writeSettings(); |
| 82 | } |
| 83 | }); |
| 84 | } |
| 85 | |
| 86 | export function startRequestWatcher(sessionStatusBarItem: StatusBarItem): void { |
| 87 | console.info('[startRequestWatcher] Starting'); |
nothing calls this directly
no test coverage detected