You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many VS Code compatible extensions will want to do one thing in VS Code and another in Positron; the quarto extension is a good example. These extensions need a way to safely test to see whether or not they are running in Positron. When running in Positron they will want to take full advantage of the Positron API; when running in VS Code (or other fork), they will omit these enhancements, or perform a graceful degradation.
In addition to supplying an "is Positron?" test, the package should supply methods that perform the most common kinds of graceful degradations. For example, the API that shows a URL in Positron's Preview pane could have a VS Code implementation that shows it in a WebViewPanel instead. Extensions can use the package's URL display method without needing to know which IDE is running.
This package should be published to npm ahead of Positron's public release so that extension authors can use it to help author Positron specific behavior for extensions published to OpenVSX, etc.
The text was updated successfully, but these errors were encountered:
Many VS Code compatible extensions will want to do one thing in VS Code and another in Positron; the quarto extension is a good example. These extensions need a way to safely test to see whether or not they are running in Positron. When running in Positron they will want to take full advantage of the Positron API; when running in VS Code (or other fork), they will omit these enhancements, or perform a graceful degradation.
In addition to supplying an "is Positron?" test, the package should supply methods that perform the most common kinds of graceful degradations. For example, the API that shows a URL in Positron's Preview pane could have a VS Code implementation that shows it in a WebViewPanel instead. Extensions can use the package's URL display method without needing to know which IDE is running.
This package should be published to npm ahead of Positron's public release so that extension authors can use it to help author Positron specific behavior for extensions published to OpenVSX, etc.
The text was updated successfully, but these errors were encountered: