Find a file
Simon Siefke acfe0e20ce
feature: replace electron File.path with electron webUtils (#213031)
* add getPathForFIle function

* use electron webutils

* use webutils

* use getPathForFile

* add test

* fix import

* add web utils service

* register electron webutils service

* register contribution

* import contribution

* register web contribution

* feature: use webUtils service to not directly depend on electron global

* use webutils service for terminal

* update imports

* tsc

* update imports

* add servicebrand

* tsc

* tsc

* try different approach

* add class and subclass

* register contribution with subclass

* rename function

* remove web utils service

* register getPathForFile function

* fix import

* remove webutils service

* remove import

* remove import

* fix imports

* fix import

* fix overwriting view

* register method

* fix import

* register contribution

* don't overwrite electron service with browser service

* remove log

* remove log

* tsc

* Discard changes to src/vs/workbench/contrib/files/browser/fileActions.contribution.ts

* Discard changes to src/vs/workbench/contrib/files/browser/fileActions.ts

* Discard changes to src/vs/workbench/contrib/files/electron-sandbox/fileActions.contribution.ts

* Discard changes to src/vs/workbench/contrib/terminal/browser/terminal.contribution.ts

* Discard changes to src/vs/workbench/contrib/terminal/browser/terminal.ts

* Discard changes to src/vs/workbench/contrib/terminal/browser/terminalInstance.ts

* Discard changes to src/vs/workbench/contrib/terminal/browser/terminalInstanceService.ts

* Discard changes to src/vs/workbench/contrib/terminal/browser/terminalTabbedView.ts

* Discard changes to src/vs/workbench/contrib/terminal/browser/terminalTabsList.ts

* Discard changes to src/vs/workbench/contrib/terminal/browser/terminalView.ts

* Discard changes to src/vs/workbench/contrib/terminal/electron-sandbox/terminal.contribution.ts

* Discard changes to src/vs/workbench/contrib/terminal/electron-sandbox/terminalInstanceService.ts

* Discard changes to src/vs/workbench/contrib/terminal/electron-sandbox/terminalView.ts

* Discard changes to src/vs/workbench/contrib/terminal/test/browser/terminalInstance.test.ts

* add function to interface

* add function

* use host service

* use host service in terminal tabs list

* use host service in terminal instance

* remove unused code

* fix imports

* replace remaining usages of file path

* tsc

* add semicolon

* cleanup

---------

Co-authored-by: Benjamin Pasero <benjamin.pasero@microsoft.com>
2024-06-02 20:09:17 +02:00
.configurations Engineering - update winget configuration file (#194107) 2023-09-26 14:15:05 +02:00
.devcontainer Move to Dockerfile (microsoft/vscode-remote-release#8994) 2023-10-04 20:43:28 +02:00
.eslintplugin Clean up some type assertions (#211751) 2024-04-30 18:39:44 -07:00
.github Remove redundant info-needed commands (#212225) 2024-05-08 07:33:37 +02:00
.vscode Fixes #213573 (#213574) 2024-05-27 17:28:51 +02:00
build Add editor.findMatchForeground (#213497) 2024-05-27 15:48:07 +00:00
cli forwarding: make https work for port forwarding (#213943) 2024-05-30 21:42:51 -07:00
extensions Update grammars (#214005) 2024-05-31 15:09:59 +02:00
remote Missing server node module (#213712) 2024-05-28 20:50:32 +02:00
resources chore: update remote node.js (#213439) 2024-05-26 07:12:14 +02:00
scripts Remove canvas renderer 2024-04-26 05:54:23 -07:00
src feature: replace electron File.path with electron webUtils (#213031) 2024-06-02 20:09:17 +02:00
test add ListenerRefusalError and ListenerLeakError which get logged when listener thresholds are exceeded. (#212900) 2024-05-16 08:29:17 -07:00
.editorconfig No forcing tabsize on users 2018-12-19 09:10:53 -08:00
.eslintignore Fixes #208581: ESLint and .vscode/extensions is tricky to configure (#210031) 2024-04-10 12:03:56 +02:00
.eslintrc.json aux window - support Firefox (#213769) 2024-05-29 00:46:24 -07:00
.git-blame-ignore-revs Engineering - Rename .git-blame-ignore to .git-blame-ignore-revs (#196816) 2023-10-27 12:34:22 +02:00
.gitattributes Whitelist comments in all JSON files. For #129206 2021-09-20 14:54:26 +02:00
.gitignore adopt building extensions (#207731) 2024-03-15 15:06:28 +01:00
.lsifrc.json Add lsifrc file 2021-07-14 13:38:16 +02:00
.mailmap update .mailmap (#159565) 2022-08-30 16:14:56 +02:00
.mention-bot
.nvmrc chore: update to electron 29 (#209818) 2024-05-11 01:20:28 +09:00
.vscode-test.js adopt test-extension for colorize & configuration-editing (#195691) 2023-11-17 20:22:36 +01:00
.yarnrc chore: bump electron@29.4.0 (#213050) 2024-05-20 08:31:44 -07:00
cglicenses.json Update license and third party notices (#213580) 2024-05-27 17:58:05 +02:00
cgmanifest.json chore: update remote node.js (#213439) 2024-05-26 07:12:14 +02:00
CodeQL.yml eng: mark the patch application file as being generated (#194047) 2023-09-26 04:31:01 +01:00
CONTRIBUTING.md Merge branch 'main' into patch-1 2023-12-11 11:12:18 +00:00
gulpfile.js Move actual gulpfile logic to /build/ 2020-12-14 14:24:34 +01:00
LICENSE.txt remove blank line (my best checkin ever) 2020-05-01 14:26:04 -07:00
package.json Bump versions (#213961) 2024-05-31 02:38:37 +02:00
product.json debug: bump js-debug for 1.90 (#213735) 2024-05-28 15:58:35 -07:00
README.md Fix supported markdown-lint violations in markdown files (#190750) 2023-08-24 08:37:25 +00:00
SECURITY.md Update SECURITY.md to latest version (#206550) 2024-02-29 19:48:11 +01:00
ThirdPartyNotices.txt Update license and third party notices (#213580) 2024-05-27 17:58:05 +02:00
tsfmt.json Add insertSpaceAfterOpeningAndBeforeClosingEmptyBraces to tsfmt 2021-08-30 15:48:55 -07:00
yarn.lock Bump postcss from 7.0.39 to 8.4.38 (#209857) 2024-05-28 10:31:17 +02: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 repositories are separate from each other. 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 extension provides rich language support for JSON.

Development Container

This repository includes a Visual Studio Code Dev Containers / GitHub Codespaces development container.

  • For Dev Containers, use the Dev Containers: Clone Repository in Container Volume... command which creates a Docker volume for better disk I/O on macOS and Windows.

    • If you already have VS Code and Docker installed, you can also click here to get started. This will cause VS Code to automatically install the Dev Containers extension if needed, clone the source code into a container volume, and spin up a dev container for use.
  • For Codespaces, install the GitHub 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.