Skip to content

Commit

Permalink
Delete all snippets (#15006)
Browse files Browse the repository at this point in the history
  • Loading branch information
brettcannon committed Dec 18, 2020
1 parent e6ef803 commit 70045a7
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 187 deletions.
3 changes: 1 addition & 2 deletions README.md
@@ -1,6 +1,6 @@
# Python extension for Visual Studio Code

A [Visual Studio Code](https://code.visualstudio.com/) [extension](https://marketplace.visualstudio.com/VSCode) with rich support for the [Python language](https://www.python.org/) (for all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the language: >=3.6), including features such as IntelliSense, linting, debugging, code navigation, code formatting, Jupyter notebook support, refactoring, variable explorer, test explorer, snippets, and more!
A [Visual Studio Code](https://code.visualstudio.com/) [extension](https://marketplace.visualstudio.com/VSCode) with rich support for the [Python language](https://www.python.org/) (for all [actively supported versions](https://devguide.python.org/#status-of-python-branches) of the language: >=3.6), including features such as IntelliSense, linting, debugging, code navigation, code formatting, Jupyter notebook support, refactoring, variable explorer, test explorer, and more!

## Quick start

Expand Down Expand Up @@ -32,7 +32,6 @@ The Python extension and the [Jupyter extension](https://marketplace.visualstudi

<img src=https://raw.githubusercontent.com/microsoft/vscode-python/main/images/OpenOrCreateNotebook.gif width=1029 height=602>


For more information you can:

- [Follow our Python tutorial](https://code.visualstudio.com/docs/python/python-tutorial#_prerequisites) with step-by-step instructions for building a simple app.
Expand Down
3 changes: 1 addition & 2 deletions gulpfile.js
Expand Up @@ -58,7 +58,6 @@ const tslintFilter = [
'!.vscode/**/*',
'!pythonFiles/**/*',
'!resources/**/*',
'!snippets/**/*',
'!syntaxes/**/*',
'!**/typings/**/*',
'!**/*.d.ts',
Expand Down Expand Up @@ -143,7 +142,7 @@ async function addExtensionDependencies() {
// extension dependencies need not be installed during development
const packageJsonContents = await fsExtra.readFile('package.json', 'utf-8');
const packageJson = JSON.parse(packageJsonContents);
packageJson.extensionDependencies = ["ms-toolsai.jupyter"].concat(packageJson.extensionDependencies ? packageJson.extensionDependencies : []);
packageJson.extensionDependencies = ['ms-toolsai.jupyter'].concat(packageJson.extensionDependencies ? packageJson.extensionDependencies : []);
await fsExtra.writeFile('package.json', JSON.stringify(packageJson, null, 4), 'utf-8');
}

Expand Down
4 changes: 4 additions & 0 deletions news/1 Enhancements/14781.md
@@ -0,0 +1,4 @@
Remove code snippets (you can copy the
[old snippets](https://github.com/microsoft/vscode-python/blob/2020.12.424452561/snippets/python.json)
and use them as
[your own snippets](https://code.visualstudio.com/docs/editor/userdefinedsnippets#_create-your-own-snippets))
9 changes: 1 addition & 8 deletions package.json
@@ -1,7 +1,7 @@
{
"name": "python",
"displayName": "Python",
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, snippets, and more.",
"description": "Linting, Debugging (multi-threaded, remote), Intellisense, Jupyter Notebooks, code formatting, refactoring, unit tests, and more.",
"version": "2021.1.0-dev",
"featureFlags": {
"usingNewInterpreterStorage": true
Expand Down Expand Up @@ -40,7 +40,6 @@
"Programming Languages",
"Debuggers",
"Linters",
"Snippets",
"Formatters",
"Other",
"Extension Packs",
Expand Down Expand Up @@ -89,12 +88,6 @@
],
"main": "./out/client/extension",
"contributes": {
"snippets": [
{
"language": "python",
"path": "./snippets/python.json"
}
],
"keybindings": [
{
"command": "python.execSelectionInTerminal",
Expand Down
175 changes: 0 additions & 175 deletions snippets/python.json

This file was deleted.

0 comments on commit 70045a7

Please sign in to comment.