Skip to content

Commit bb518bb

Browse files
committed
fixed path for local help
1 parent 028e092 commit bb518bb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/client/helpProvider.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import * as vscode from 'vscode';
44
import {Disposable} from 'vscode';
5-
import * as fs from 'fs';
65
import * as path from 'path';
7-
import * as constants from './common/constants';
86
import * as http from 'http';
97
import {createDeferred} from './common/helpers';
108
const nodeStatic = require('node-static');
@@ -55,7 +53,7 @@ export class HelpProvider {
5553
this.disposables.push(vscode.commands.registerCommand('python.displayHelp', (page: string) => {
5654
this.startServer().then(port => {
5755
helpPageToDisplay = page;
58-
vscode.commands.executeCommand('vscode.previewHtml', previewUri, vscode.ViewColumn.One, 'Help');
56+
vscode.commands.executeCommand('vscode.previewHtml', previewUri, vscode.ViewColumn.Two, 'Help');
5957
});
6058
}));
6159
}
@@ -71,7 +69,7 @@ export class HelpProvider {
7169
}
7270

7371
let def = createDeferred<number>();
74-
var file = new nodeStatic.Server(path.join(__dirname, '..', '..', 'docs', 'public'));
72+
var file = new nodeStatic.Server(path.join(__dirname, '..', '..', 'docs'));
7573
this.httpServer = http.createServer((request, response) => {
7674
request.addListener('end', function () {
7775
//

0 commit comments

Comments
 (0)