Skip to content

Commit d96c036

Browse files
authored
remove unwanted and unused deps and features (microsoft#4)
1 parent e54947e commit d96c036

10 files changed

Lines changed: 8 additions & 206 deletions

File tree

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

docs

Lines changed: 0 additions & 1 deletion
This file was deleted.

gulpfile.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ const eolFilter = [
4343
'!**/*.{svg,exe,png,bmp,scpt,bat,cmd,cur,ttf,woff,eot,txt,md,json,yml}',
4444
'!out/**/*',
4545
'!images/**/*',
46-
'!docs/**/*',
4746
'!.vscode/**/*',
4847
'!pythonFiles/**/*',
4948
'!resources/**/*',
@@ -64,7 +63,6 @@ const tslintFilter = [
6463
'!**/node_modules/**',
6564
'!out/**/*',
6665
'!images/**/*',
67-
'!docs/**/*',
6866
'!.vscode/**/*',
6967
'!pythonFiles/**/*',
7068
'!resources/**/*',

package.json

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@
6565
"onCommand:jupyter.runSelectionLine",
6666
"onCommand:jupyter.execCurrentCell",
6767
"onCommand:jupyter.execCurrentCellAndAdvance",
68-
"onCommand:python.displayHelp",
6968
"onCommand:python.buildWorkspaceSymbols",
7069
"onCommand:python.updateSparkLibrary",
7170
"onCommand:python.startREPL",
@@ -202,11 +201,6 @@
202201
"title": "Go to Next Cell",
203202
"category": "Jupyter"
204203
},
205-
{
206-
"command": "python.displayHelp",
207-
"title": "Help",
208-
"category": "Python"
209-
},
210204
{
211205
"command": "python.goToPythonObject",
212206
"title": "Go to Python Object",
@@ -1600,23 +1594,17 @@
16001594
"lint": "tslint src/**/*.ts -t verbose"
16011595
},
16021596
"dependencies": {
1603-
"anser": "^1.1.0",
1604-
"copy-paste": "^1.3.0",
16051597
"diff-match-patch": "^1.0.0",
16061598
"fs-extra": "^4.0.2",
16071599
"fuzzy": "^0.1.3",
16081600
"line-by-line": "^0.1.5",
16091601
"lodash": "^4.17.4",
16101602
"minimatch": "^3.0.3",
16111603
"named-js-regexp": "^1.3.1",
1612-
"node-static": "^0.7.9",
1613-
"prepend-file": "^1.3.0",
16141604
"rx": "^4.1.0",
16151605
"semver": "^5.4.1",
16161606
"socket.io": "^1.4.8",
16171607
"tmp": "0.0.29",
1618-
"transformime": "^3.1.2",
1619-
"transformime-marked": "0.0.1",
16201608
"tree-kill": "^1.1.0",
16211609
"uint64be": "^1.0.1",
16221610
"untildify": "^3.0.2",
@@ -1626,8 +1614,7 @@
16261614
"vscode-languageclient": "^3.1.0",
16271615
"vscode-languageserver": "^3.1.0",
16281616
"winreg": "^1.2.4",
1629-
"xml2js": "^0.4.17",
1630-
"vscode": "^1.1.5"
1617+
"xml2js": "^0.4.17"
16311618
},
16321619
"devDependencies": {
16331620
"@types/chai": "^4.0.4",
@@ -1660,12 +1647,15 @@
16601647
"relative": "^3.0.2",
16611648
"retyped-diff-match-patch-tsd-ambient": "^1.0.0-0",
16621649
"sinon": "^2.3.6",
1650+
"transformime": "^3.1.2",
1651+
"transformime-marked": "0.0.1",
16631652
"ts-loader": "^2.3.4",
16641653
"tslint": "^5.7.0",
16651654
"tslint-eslint-rules": "^4.1.1",
16661655
"tslint-microsoft-contrib": "^5.0.1",
16671656
"typescript": "^2.5.2",
16681657
"typescript-formatter": "^6.0.0",
1669-
"webpack": "^1.13.2"
1658+
"webpack": "^1.13.2",
1659+
"vscode": "^1.1.5"
16701660
}
16711661
}

src/client/common/constants.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -80,20 +80,3 @@ export namespace LinterErrors {
8080
export const InvalidSyntax = 'E999';
8181
}
8282
}
83-
84-
export namespace Documentation {
85-
export const Home = '/docs/python-path/';
86-
export namespace Jupyter {
87-
export const GettingStarted = '/docs/jupyter_getting-started/';
88-
export const Examples = '/docs/jupyter_examples/';
89-
export const Setup = '/docs/jupyter_prerequisites/';
90-
export const VersionIncompatiblity = '/docs/troubleshooting_jupyter/#Incompatible-dependencies';
91-
}
92-
export namespace Formatting {
93-
export const FormatOnSave = '/docs/formatting/';
94-
}
95-
export namespace Workspace {
96-
export const Home = '/docs/workspaceSymbols/';
97-
export const InstallOnWindows = '/docs/workspaceSymbols/#Install-Windows';
98-
}
99-
}

src/client/extension.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
'use strict';
22

3-
import * as fs from 'fs';
43
import * as os from 'os';
5-
import { workspace } from 'vscode';
64
import * as vscode from 'vscode';
75
import * as settings from './common/configSettings';
86
import { Commands } from './common/constants';
97
import { createDeferred } from './common/helpers';
108
import * as telemetryHelper from './common/telemetry';
119
import * as telemetryContracts from './common/telemetryContracts';
1210
import { SimpleConfigurationProvider } from './debugger';
13-
import { HelpProvider } from './helpProvider';
1411
import { InterpreterManager } from './interpreter';
1512
import { SetInterpreterProvider } from './interpreter/configuration/setInterpreterProvider';
1613
import { ShebangCodeLensProvider } from './interpreter/display/shebangCodeLensProvider';
@@ -142,9 +139,6 @@ export async function activate(context: vscode.ExtensionContext) {
142139
const triggerCharacters: string[] = os.EOL.split('');
143140
triggerCharacters.shift();
144141

145-
const hepProvider = new HelpProvider();
146-
context.subscriptions.push(hepProvider);
147-
148142
context.subscriptions.push(vscode.debug.registerDebugConfigurationProvider('python', new SimpleConfigurationProvider()));
149143
activationDeferred.resolve();
150144
}

src/client/helpProvider.ts

Lines changed: 0 additions & 113 deletions
This file was deleted.

src/client/jupyter/main.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { Commands, PythonLanguage } from '../common/constants';
77
import { JupyterCodeLensProvider } from './editorIntegration/codeLensProvider';
88
import { JupyterSymbolProvider } from './editorIntegration/symbolProvider';
99
import { formatErrorForLogging } from '../common/utils';
10-
import { Documentation } from '../common/constants';
1110
// import * as telemetryHelper from '../common/telemetry';
1211
// import * as telemetryContracts from '../common/telemetryContracts';
1312
import * as main from './jupyter_client/main';
@@ -147,10 +146,7 @@ export class Jupyter extends vscode.Disposable {
147146
}).catch(reason => {
148147
const message = typeof reason === 'string' ? reason : reason.message;
149148
this.outputChannel.appendLine(formatErrorForLogging(reason));
150-
vscode.window.showErrorMessage(message, 'Help', 'View Errors').then(item => {
151-
if (item === 'Help') {
152-
vscode.commands.executeCommand('python.displayHelp', Documentation.Jupyter.Setup);
153-
}
149+
vscode.window.showErrorMessage(message, 'View Errors').then(item => {
154150
if (item === 'View Errors') {
155151
this.outputChannel.show();
156152
}
@@ -230,4 +226,4 @@ export class Jupyter extends vscode.Disposable {
230226
this.onKernelChanged();
231227
}));
232228
}
233-
};
229+
};

src/client/providers/codeActionProvider.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
"src/server/node_modules",
1818
"src/client/node_modules",
1919
"src/server/src/typings",
20-
"src/client/src/typings",
21-
"docs"
20+
"src/client/src/typings"
2221
]
2322
}

0 commit comments

Comments
 (0)