@@ -10,7 +10,7 @@ import * as path from 'path';
1010import * as TypeMoq from 'typemoq' ;
1111import { DebugConfiguration , DebugConfigurationProvider , TextDocument , TextEditor , Uri , WorkspaceFolder } from 'vscode' ;
1212import { IApplicationShell , IDocumentManager , IWorkspaceService } from '../../../client/common/application/types' ;
13- import { PythonLanguage } from '../../../client/common/constants' ;
13+ import { PYTHON_LANGUAGE } from '../../../client/common/constants' ;
1414import { IFileSystem , IPlatformService } from '../../../client/common/platform/types' ;
1515import { IPythonExecutionFactory , IPythonExecutionService } from '../../../client/common/process/types' ;
1616import { IConfigurationService , IPythonSettings } from '../../../client/common/types' ;
@@ -94,7 +94,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
9494 const pythonFile = 'xyz.py' ;
9595 setupIoc ( pythonPath ) ;
9696
97- setupActiveEditor ( pythonFile , PythonLanguage . language ) ;
97+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
9898
9999 const debugConfig = await debugProvider . resolveDebugConfiguration ! ( workspaceFolder , { } as DebugConfiguration ) ;
100100
@@ -116,7 +116,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
116116 const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
117117 const pythonFile = 'xyz.py' ;
118118 setupIoc ( pythonPath ) ;
119- setupActiveEditor ( pythonFile , PythonLanguage . language ) ;
119+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
120120
121121 const debugConfig = await debugProvider . resolveDebugConfiguration ! ( workspaceFolder , { noDebug : true } as any as DebugConfiguration ) ;
122122
@@ -137,7 +137,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
137137 const pythonPath = `PythonPath_${ new Date ( ) . toString ( ) } ` ;
138138 const pythonFile = 'xyz.py' ;
139139 setupIoc ( pythonPath ) ;
140- setupActiveEditor ( pythonFile , PythonLanguage . language ) ;
140+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
141141 setupWorkspaces ( [ ] ) ;
142142
143143 const debugConfig = await debugProvider . resolveDebugConfiguration ! ( undefined , { } as DebugConfiguration ) ;
@@ -159,7 +159,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
159159 test ( 'Defaults should be returned when an empty object is passed without Workspace Folder, no workspaces and no active file' , async ( ) => {
160160 const pythonPath = `PythonPath_${ new Date ( ) . toString ( ) } ` ;
161161 setupIoc ( pythonPath ) ;
162- setupActiveEditor ( undefined , PythonLanguage . language ) ;
162+ setupActiveEditor ( undefined , PYTHON_LANGUAGE ) ;
163163 setupWorkspaces ( [ ] ) ;
164164
165165 const debugConfig = await debugProvider . resolveDebugConfiguration ! ( undefined , { } as DebugConfiguration ) ;
@@ -199,7 +199,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
199199 const pythonPath = `PythonPath_${ new Date ( ) . toString ( ) } ` ;
200200 const activeFile = 'xyz.py' ;
201201 setupIoc ( pythonPath ) ;
202- setupActiveEditor ( activeFile , PythonLanguage . language ) ;
202+ setupActiveEditor ( activeFile , PYTHON_LANGUAGE ) ;
203203 const defaultWorkspace = path . join ( 'usr' , 'desktop' ) ;
204204 setupWorkspaces ( [ defaultWorkspace ] ) ;
205205
@@ -224,7 +224,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
224224 const activeFile = 'xyz.py' ;
225225 const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
226226 setupIoc ( pythonPath ) ;
227- setupActiveEditor ( activeFile , PythonLanguage . language ) ;
227+ setupActiveEditor ( activeFile , PYTHON_LANGUAGE ) ;
228228 const defaultWorkspace = path . join ( 'usr' , 'desktop' ) ;
229229 setupWorkspaces ( [ defaultWorkspace ] ) ;
230230
@@ -237,7 +237,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
237237 const activeFile = 'xyz.py' ;
238238 const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
239239 setupIoc ( pythonPath ) ;
240- setupActiveEditor ( activeFile , PythonLanguage . language ) ;
240+ setupActiveEditor ( activeFile , PYTHON_LANGUAGE ) ;
241241 const defaultWorkspace = path . join ( 'usr' , 'desktop' ) ;
242242 setupWorkspaces ( [ defaultWorkspace ] ) ;
243243
@@ -254,7 +254,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
254254 const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
255255 const pythonFile = 'xyz.py' ;
256256 setupIoc ( pythonPath ) ;
257- setupActiveEditor ( pythonFile , PythonLanguage . language ) ;
257+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
258258
259259 const debugConfig = await debugProvider . resolveDebugConfiguration ! ( workspaceFolder , { } as DebugConfiguration ) ;
260260
@@ -271,7 +271,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
271271 const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
272272 const pythonFile = 'xyz.py' ;
273273 setupIoc ( pythonPath ) ;
274- setupActiveEditor ( pythonFile , PythonLanguage . language ) ;
274+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
275275
276276 const debugConfig = await debugProvider . resolveDebugConfiguration ! ( workspaceFolder , { } as DebugConfiguration ) ;
277277
@@ -284,7 +284,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
284284 const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
285285 const pythonFile = 'xyz.py' ;
286286 setupIoc ( pythonPath , isWindows , isMac , isLinux ) ;
287- setupActiveEditor ( pythonFile , PythonLanguage . language ) ;
287+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
288288
289289 const debugConfig = await debugProvider . resolveDebugConfiguration ! ( workspaceFolder , { } as DebugConfiguration ) ;
290290 if ( isWindows ) {
@@ -321,7 +321,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
321321 const pythonFile = 'xyz.py' ;
322322
323323 setupIoc ( pythonPath , isWindows , isMac , isLinux ) ;
324- setupActiveEditor ( pythonFile , PythonLanguage . language ) ;
324+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
325325
326326 const execOutput = pyramidExists ? Promise . resolve ( { stdout : pyramidFilePath } ) : Promise . reject ( new Error ( 'No Module' ) ) ;
327327 pythonExecutionService . setup ( e => e . exec ( TypeMoq . It . isValue ( args ) , TypeMoq . It . isAny ( ) ) )
@@ -379,7 +379,7 @@ import { IServiceContainer } from '../../../client/ioc/types';
379379 const workspaceFolder = createMoqWorkspaceFolder ( __dirname ) ;
380380 const pythonFile = 'xyz.py' ;
381381 setupIoc ( pythonPath ) ;
382- setupActiveEditor ( pythonFile , PythonLanguage . language ) ;
382+ setupActiveEditor ( pythonFile , PYTHON_LANGUAGE ) ;
383383
384384 const debugConfig = await debugProvider . resolveDebugConfiguration ! ( workspaceFolder , { module : 'flask' } as any as DebugConfiguration ) ;
385385
0 commit comments