22
33import * as vscode from 'vscode' ;
44import { Disposable } from 'vscode' ;
5- import * as fs from 'fs' ;
65import * as path from 'path' ;
7- import * as constants from './common/constants' ;
86import * as http from 'http' ;
97import { createDeferred } from './common/helpers' ;
108const 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