Find a file
Matt Bierner 99d5733e5f New iteration of webview editor API proposal
For #77131

**Motivation**
While our existing webview editor API proposal more or less works, building an editable webview editor is fairly tricky using it! This is especially true for simple text based editors.

It'd also be nice if we could get bi-directional live editing for text files. For example, if I open the same file in a webview editor and in VS Code's normal editor, edits on either side should be reflected in the other. While this can sort of be implemented using the existing API, it has some big limitations

**Overview of changes**
To address these problems, we've decided have two types of webview editors:

- Text based webview editors. These editors used a `TextDocument` as their data model, which considerably simplifies implementing an editable webview. In almost all cases, this should be what you use for text files

- Complex webview editors. This is basically the existing proposed API. This gives extension hooks into all the VS Code events, such as `save`, `undo`, and so on. These should be used for binary files or in very complex text editor cases.

Both editor types now have an explicit model layer based on documents. Text editor use `TextDocument` for this, while custom editors use `WebviewEditorCustomDocument`. This replaces the delegate based approach previously used.
2020-02-21 16:26:01 -08:00
.github tests - try to fix playwright on linux in GH CI 2020-02-10 16:49:27 +01:00
.vscode Enable strict mode for VS Code core 2020-02-18 10:41:41 -08:00
build Pick up TS 3.8.2 2020-02-20 21:38:14 -08:00
extensions New iteration of webview editor API proposal 2020-02-21 16:26:01 -08:00
remote xterm@4.5.0-beta.4 2020-02-12 17:30:20 -08:00
resources update to electron 6.0.x (#81644) 2019-10-10 12:26:28 -07:00
scripts always launch code with --no-sandbox 2020-02-17 16:31:00 +01:00
src New iteration of webview editor API proposal 2020-02-21 16:26:01 -08:00
test 🆙 playwright@0.11.0 (#90663) 2020-02-14 09:56:08 +01:00
.editorconfig No forcing tabsize on users 2018-12-19 09:10:53 -08:00
.eslintignore tweak ignore file 2019-12-31 10:39:33 +01:00
.eslintrc.json New iteration of webview editor API proposal 2020-02-21 16:26:01 -08:00
.gitattributes attributes: rtf files are not text 2019-03-19 09:44:27 +01:00
.gitignore web - add build 2019-07-14 13:12:54 +02:00
.mailmap Add self to mailmap 2019-12-30 10:15:02 -08:00
.mention-bot update mention bot configuration 2016-07-11 16:43:26 +02:00
.nvmrc Update .nvmrc 2019-03-18 15:13:14 +00:00
.prettierrc.json Add prettier config 2019-08-27 09:33:19 -07:00
.yarnrc chore: update to electron 7 (#89260) 2020-02-04 12:56:23 -08:00
azure-pipelines.yml use macOS-latest hosted agent 2020-01-24 09:44:16 +01:00
cglicenses.json Remove cglicenses workaround for xterm addons 2019-09-13 11:22:35 -07:00
cgmanifest.json chore: update to electron 7 (#89260) 2020-02-04 12:56:23 -08:00
CONTRIBUTING.md Update contributing guidelines; some issues may be OS specific (#66289) 2019-01-09 15:07:26 -08:00
gulpfile.js remove gulpfile.ci 2019-07-02 15:38:23 +02:00
LICENSE.txt fix line endings 2018-03-05 12:47:11 +01:00
package.json Pick up TS 3.8.2 2020-02-20 21:38:14 -08:00
product.json Fix commit 2019-09-19 12:57:04 +02:00
README.md Update README.md (#90787) 2020-02-17 12:44:31 -08:00
ThirdPartyNotices.txt run OSS tool for 1.42 2020-01-27 13:46:35 +01:00
tsfmt.json fix hygiene 2018-03-06 15:45:32 +01:00
yarn.lock Pick up TS 3.8.2 2020-02-20 21:38:14 -08:00

Visual Studio Code - Open Source ("Code - OSS")

Build Status Feature Requests Bugs Gitter

The Repository

This repository ("Code - OSS") is where we (Microsoft) develop the Visual Studio Code product. Not only do we work on code and issues here, we also publish our roadmap, monthly iteration plans, and our endgame plans. This source code is available to everyone under the standard MIT license.

Visual Studio Code

VS Code in action

Visual Studio Code is a distribution of the Code - OSS repository with Microsoft specific customizations released under a traditional Microsoft product license.

Visual Studio Code combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.

Visual Studio Code is updated monthly with new features and bug fixes. You can download it for Windows, macOS, and Linux on Visual Studio Code's website. To get the latest releases every day, install the Insiders build.

Contributing

There are many ways in which you can participate in the project, for example:

If you are interested in fixing issues and contributing directly to the code base, please see the document How to Contribute, which covers the following:

Feedback

Many of the core components and extensions to VS Code live in their own repositories on GitHub. For example, the node debug adapter and the mono debug adapter have their own repositories. For a complete list, please visit the Related Projects page on our wiki.

Bundled Extensions

VS Code includes a set of built-in extensions located in the extensions folder, including grammars and snippets for many languages. Extensions that provide rich language support (code completion, Go to Definition) for a language have the suffix language-features. For example, the json extension provides coloring for JSON and the json-language-features provides rich language support for JSON.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

License

Copyright (c) Microsoft Corporation. All rights reserved.

Licensed under the MIT license.