Microsoft/monaco-editor

[Feature Request] Add registerCallHierarchyProvider to standalone monaco exports

Open

#3.442 geöffnet am 30. Nov. 2022

Auf GitHub ansehen
 (6 Kommentare) (0 Reaktionen) (1 zugewiesene Person)JavaScript (1.283 Forks)batch import
feature-requesthelp wantedtypescript

Repository-Metriken

Stars
 (14.836 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 6h 26m) (15 gemergte PRs in 30 T)

Beschreibung

Context

  • This issue is not a bug report. (please use a different template for reporting a bug)
  • This issue is not a duplicate of an existing issue. (please use the search to find existing issues)

Description

There is existing infrastructure in VS Code for a CallHierarchyProvider, which the TypeScript extension makes use of (as a VS Code Extension API). But, it looks like the required glue code hasn't been added to the standalone Monaco API.

It could be as simple as a few lines of code in src/vs/editor/standalone/browser/standaloneLanguages.ts to add a stub to receive the provider and register it with the existing service.

(There appear to be a couple more registerX() methods in the vscode extension API as well, which haven't been added to Monaco. I don't know what they do, but maybe it's worth adding them all, to bring standaloneLanguages.ts fully up-to-date.)

Contributor Guide