Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrated editor in webview #94983

Closed
sguillia opened this issue Apr 11, 2020 · 2 comments
Closed

Integrated editor in webview #94983

sguillia opened this issue Apr 11, 2020 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s)

Comments

@sguillia
Copy link

Summary
Allow to create our own "Interactive Playgrounds" mixing HTML and integrated editors.

Description
VS Code has a nice interactive playground, which is a webview with integrated editors.

Help > Interactive Playground

There editors embed all the features of a default text editor:

  • syntax highlighting
  • autocompletion
  • extension contributions
  • ...

I would like to create a webview containing editors like that.

Currently, we can only create webviews with an HTML textarea, like this.

The content of the Interactive Playground is here

### Errors and Warnings
Errors and warnings are highlighted as you edit your code with squiggles. In the sample below you can see a number of syntax errors. By pressing kb(editor.action.marker.nextInFiles) you can navigate across them in sequence and see the detailed error message. As you correct them the squiggles and scrollbar indicators will update.
|||js
// This code has a few syntax errors
Console.log(add(1, 1.5));
function Add(a : Number, b : Number) : Int {
return a + b;
}
|||

Relates to #77131 even if this can apply to webviews that are not custom editors

@vscodebot
Copy link

vscodebot bot commented Apr 11, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@mjbvz
Copy link
Collaborator

mjbvz commented Apr 11, 2020

Duplicate of #93265

@mjbvz mjbvz marked this as a duplicate of #93265 Apr 11, 2020
@mjbvz mjbvz closed this as completed Apr 11, 2020
@mjbvz mjbvz added the *duplicate Issue identified as a duplicate of another issue(s) label Apr 11, 2020
@github-actions github-actions bot locked and limited conversation to collaborators May 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s)
Projects
None yet
Development

No branches or pull requests

2 participants