No description
Find a file
Matt Bierner 676340ffad
Get expected service worker version from renderer instead of main.js
Due to caching, it is possible that a webview ends up running an older service worker than the current renderer version. This can be triggered if a user has webview open, updates vs code (to a version that makes service worker related changes), and then has the webview restored. Depending on what was changed in the service worker, this could potentially break the webview

Previously we tried to avoid this by checking a version number stored in `main.js`. However I don't think this is reliable as `main.js` can also be cached.

The fix here to check the sw version against an expected version from the renderer. In code, these two should always be kept in sync
2021-05-28 11:07:56 -07:00
.devcontainer
.github Update commands.json 2021-05-26 08:12:33 -07:00
.vscode
build fix build 2021-05-27 11:50:04 +02:00
extensions refactor codeExchangeProxy to use same route and use it for refresh token as well 2021-05-28 10:35:52 -07:00
remote
resources
scripts
src Get expected service worker version from renderer instead of main.js 2021-05-28 11:07:56 -07:00
test smoke: trust dialog should appear in 5 seconds, and we can ignore if it doesn't 2021-05-28 11:38:10 +02:00
.editorconfig
.eslintignore
.eslintrc.json
.gitattributes
.gitignore
.mailmap
.mention-bot
.yarnrc chore: bump electron@12.0.9 2021-05-25 13:41:03 +09:00
cglicenses.json
cgmanifest.json chore: bump electron@12.0.9 2021-05-25 13:41:03 +09:00
CONTRIBUTING.md
gulpfile.js
LICENSE.txt
package.json Update distro 2021-05-27 09:05:20 -07:00
product.json
README.md Update README.md 2021-05-26 08:05:39 +00:00
SECURITY.md
ThirdPartyNotices.txt
tsfmt.json
yarn.lock Bump browserslist from 4.16.1 to 4.16.6 (#124550) 2021-05-25 00:17:17 -07:00

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

Feature Requests Bugs Gitter

The Repository

This repository ("Code - OSS") is where we (Microsoft) develop the Visual Studio Code product together with the community. 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 this 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

See our wiki for a description of each of these channels and information on some other available community-driven channels.

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.

Development Container

This repository includes a Visual Studio Code Remote - Containers / Codespaces development container.

  • For Remote - Containers, use the Remote-Containers: Open Repository in Container... command which creates a Docker volume for better disk I/O on macOS and Windows.
  • For Codespaces, install the Visual Studio Codespaces extension in VS Code, and use the Codespaces: Create New Codespace command.

Docker / the Codespace should have at least 4 Cores and 6 GB of RAM (8 GB recommended) to run full build. See the development container README for more information.

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.