MCPcopy Index your code
hub / github.com/REditorSupport/vscode-R / constructor

Method constructor

src/helpViewer/index.ts:253–280  ·  view source on GitHub ↗
(options: HelpOptions)

Source from the content-addressed store, hash-verified

251 private helpPreviewerOptions: RHelpPreviewerOptions
252
253 constructor(options: HelpOptions) {
254 this.rPath = options.rPath;
255 this.webviewScriptFile = vscode.Uri.file(options.webviewScriptPath);
256 this.webviewStyleFile = vscode.Uri.file(options.webviewStylePath);
257 const pkgListener = () => {
258 console.log('Restarting Help Server...');
259 void this.refresh(true);
260 };
261 this.helpProvider = new HelpProvider({
262 ...options,
263 pkgListener: pkgListener,
264 });
265 this.aliasProvider = new AliasProvider(options);
266 const previewListener = (previewer: RLocalHelpPreviewer) => {
267 console.log(`Refreshing R Help preview: ${previewer.packageDir}`);
268 void this.refreshPreviewer(previewer);
269 };
270 this.helpPreviewerOptions = {
271 indexTemplatePath: options.indexTemplatePath,
272 rdToHtmlScriptFile: options.rdToHtmlScriptFile,
273 rPath: this.rPath,
274 previewListener: previewListener
275 };
276 this.previewProviders = makePreviewerList(this.helpPreviewerOptions);
277 this.packageManager = new PackageManager({...options, rHelp: this});
278 this.treeViewWrapper = new HelpTreeWrapper(this);
279 this.helpPanelOptions = options;
280 }
281
282 async deserializeWebviewPanel(
283 webviewPanel: vscode.WebviewPanel,

Callers

nothing calls this directly

Calls 1

makePreviewerListFunction · 0.90

Tested by

no test coverage detected