Skip to content

Commit

Permalink
🔥 remove jupyter commands (#1034)
Browse files Browse the repository at this point in the history
* remove jupyter commands
* Fix #897
  • Loading branch information
Yu Zhang authored and DonJayamanne committed Mar 12, 2018
1 parent f74fb50 commit dc78b31
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 77 deletions.
35 changes: 0 additions & 35 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@
"onCommand:python.runFailedTests",
"onCommand:python.execSelectionInTerminal",
"onCommand:python.execSelectionInDjangoShell",
"onCommand:jupyter.runSelectionLine",
"onCommand:jupyter.execCurrentCell",
"onCommand:jupyter.execCurrentCellAndAdvance",
"onCommand:python.buildWorkspaceSymbols",
"onCommand:python.updateSparkLibrary",
"onCommand:python.startREPL",
Expand All @@ -94,13 +91,6 @@
"path": "./snippets/python.json"
}
],
"keybindings": [
{
"command": "jupyter.runSelectionLine",
"key": "ctrl+alt+enter",
"when": "editorFocus && !replaceActive && !searchViewletVisible && !findWidgetVisible"
}
],
"commands": [
{
"command": "python.sortImports",
Expand Down Expand Up @@ -197,31 +187,6 @@
"title": "%python.command.python.execSelectionInDjangoShell.title%",
"category": "Python"
},
{
"command": "jupyter.runSelectionLine",
"title": "%python.command.jupyter.runSelectionLine.title%",
"category": "Jupyter"
},
{
"command": "jupyter.execCurrentCell",
"title": "%python.command.jupyter.execCurrentCell.title%",
"category": "Jupyter"
},
{
"command": "jupyter.execCurrentCellAndAdvance",
"title": "%python.command.jupyter.execCurrentCellAndAdvance.title%",
"category": "Jupyter"
},
{
"command": "jupyter.gotToPreviousCell",
"title": "%python.command.jupyter.gotToPreviousCell.title%",
"category": "Jupyter"
},
{
"command": "jupyter.gotToNextCell",
"title": "%python.command.jupyter.gotToNextCell.title%",
"category": "Jupyter"
},
{
"command": "python.goToPythonObject",
"title": "%python.command.python.goToPythonObject.title%",
Expand Down
5 changes: 0 additions & 5 deletions package.nls.ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
"python.command.python.runFailedTests.title": "失敗した単体テストを実行",
"python.command.python.execSelectionInTerminal.title": "Python ターミナルで選択範囲/行を実行",
"python.command.python.execSelectionInDjangoShell.title": "Django シェルで選択範囲/行を実行",
"python.command.jupyter.runSelectionLine.title": "選択範囲/行を実行",
"python.command.jupyter.execCurrentCell.title": "セルを実行",
"python.command.jupyter.execCurrentCellAndAdvance.title": "セルを実行して次へ",
"python.command.jupyter.gotToPreviousCell.title": "前のセルに移動",
"python.command.jupyter.gotToNextCell.title": "次のセルに移動",
"python.command.python.goToPythonObject.title": "Python オブジェクトに移動",
"python.snippet.launch.standard.label": "Python: Current File",
"python.snippet.launch.standard.description": "標準出力で Python プログラムをデバッグ",
Expand Down
5 changes: 0 additions & 5 deletions package.nls.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
"python.command.python.runFailedTests.title": "Run Failed Unit Tests",
"python.command.python.execSelectionInTerminal.title": "Run Selection/Line in Python Terminal",
"python.command.python.execSelectionInDjangoShell.title": "Run Selection/Line in Django Shell",
"python.command.jupyter.runSelectionLine.title": "Run Selection/Line",
"python.command.jupyter.execCurrentCell.title": "Run Cell",
"python.command.jupyter.execCurrentCellAndAdvance.title": "Run Cell and Advance",
"python.command.jupyter.gotToPreviousCell.title": "Go to Previous Cell",
"python.command.jupyter.gotToNextCell.title": "Go to Next Cell",
"python.command.python.goToPythonObject.title": "Go to Python Object",
"python.command.python.setLinter.title": "Select Linter",
"python.command.python.enableLinting.title": "Enable Linting",
Expand Down
5 changes: 0 additions & 5 deletions package.nls.ko-kr.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
"python.command.python.runFailedTests.title": "실패한 단위 테스트 실행",
"python.command.python.execSelectionInTerminal.title": "Python 터미널에서 선택 영역/줄 실행",
"python.command.python.execSelectionInDjangoShell.title": "Django 셸에서 선택 영역/줄 실행",
"python.command.jupyter.runSelectionLine.title": "선택 영역/줄 실행",
"python.command.jupyter.execCurrentCell.title": "셀 실행",
"python.command.jupyter.execCurrentCellAndAdvance.title": "셀을 실행하고 다음",
"python.command.jupyter.gotToPreviousCell.title": "이전 셀로 이동",
"python.command.jupyter.gotToNextCell.title": "다음 셀로 이동",
"python.command.python.goToPythonObject.title": " Python 객체로 이동",
"python.snippet.launch.standard.label": "Python: Current File",
"python.snippet.launch.standard.description": "표준 출력으로 Python 프로그램 디버그",
Expand Down
5 changes: 0 additions & 5 deletions package.nls.ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
"python.command.python.runFailedTests.title": "Запустить непрошедшие тесты",
"python.command.python.execSelectionInTerminal.title": "Выполнить выбранный текст или текущую строку в консоли",
"python.command.python.execSelectionInDjangoShell.title": "Выполнить выбранный текст или текущую строку в оболочке Django",
"python.command.jupyter.runSelectionLine.title": "Выполнить выбранный текст или текущую строку",
"python.command.jupyter.execCurrentCell.title": "Выполнить ячейку",
"python.command.jupyter.execCurrentCellAndAdvance.title": "Выполнить ячейку и перейти к следующей",
"python.command.jupyter.gotToPreviousCell.title": "Перейти к предыдущей ячейке",
"python.command.jupyter.gotToNextCell.title": "Перейти к следующей ячейке",
"python.command.python.goToPythonObject.title": "Перейти к объекту Python",
"python.command.python.setLinter.title": "Выбрать анализатор кода",
"python.command.python.enableLinting.title": "Включить анализатор кода",
Expand Down
5 changes: 0 additions & 5 deletions package.nls.zh-cn.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@
"python.command.python.runFailedTests.title": "运行失败的单元测试",
"python.command.python.execSelectionInTerminal.title": "在 Python 终端中运行选定内容/行",
"python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 中运行选定内容/行",
"python.command.jupyter.runSelectionLine.title": "运行选定内容/行",
"python.command.jupyter.execCurrentCell.title": "运行当前 Cell",
"python.command.jupyter.execCurrentCellAndAdvance.title": "运行当前 Cell 并移动到下一个 Cell",
"python.command.jupyter.gotToPreviousCell.title": "转到前一个 Cell",
"python.command.jupyter.gotToNextCell.title": "转到下一个 Cell",
"python.command.python.goToPythonObject.title": "转到 Python 对象",
"python.snippet.launch.standard.label": "Python: Current File",
"python.snippet.launch.standard.description": "使用标准输出调试 Python 应用",
Expand Down
5 changes: 0 additions & 5 deletions package.nls.zh-tw.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
"python.command.python.runFailedTests.title": "執行失敗的單元測試",
"python.command.python.execSelectionInTerminal.title": "在 Python 終端機中執行選定內容/行",
"python.command.python.execSelectionInDjangoShell.title": "在 Django Shell 中執行選定內容/行",
"python.command.jupyter.runSelectionLine.title": "執行選定內容/行",
"python.command.jupyter.execCurrentCell.title": "執行當前 Cell",
"python.command.jupyter.execCurrentCellAndAdvance.title": "執行當前 Cell 並移動到下一個 Cell",
"python.command.jupyter.gotToPreviousCell.title": "跳至前一個 Cell",
"python.command.jupyter.gotToNextCell.title": "跳至下一個 Cell",
"python.command.python.goToPythonObject.title": "跳至 Python 物件",
"python.command.python.setLinter.title": "選擇 Linter",
"python.command.python.enableLinting.title": "啟用 Linting",
Expand Down
12 changes: 0 additions & 12 deletions src/client/common/featureDeprecationManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,6 @@ type deprecatedSettingAndValue = {
values?: {}[];
};

const jupyterDeprecationInfo: deprecatedFeatureInfo = {
doNotDisplayPromptStateKey: 'SHOW_DEPRECATED_FEATURE_PROMPT_JUPYTER',
message: 'This functionality has been moved to the \'Jupyter\' extension.',
moreInfoUrl: 'https://marketplace.visualstudio.com/items?itemName=donjayamanne.jupyter',
commands: ['jupyter.runSelectionLine', 'jupyter.execCurrentCell',
'jupyter.execCurrentCellAndAdvance', 'jupyter.gotToPreviousCell',
'jupyter.gotToNextCell']
};

const deprecatedFeatures: deprecatedFeatureInfo[] = [
{
doNotDisplayPromptStateKey: 'SHOW_DEPRECATED_FEATURE_PROMPT_FORMAT_ON_SAVE',
Expand All @@ -53,9 +44,6 @@ export class FeatureDeprecationManager implements IFeatureDeprecationManager {
this.disposables.forEach(disposable => disposable.dispose());
}
public initialize() {
if (!this.jupyterExtensionInstalled) {
deprecatedFeatures.push(jupyterDeprecationInfo);
}
deprecatedFeatures.forEach(this.registerDeprecation.bind(this));
}
private registerDeprecation(deprecatedInfo: deprecatedFeatureInfo) {
Expand Down

0 comments on commit dc78b31

Please sign in to comment.