22// Copyright (c) Microsoft Corporation. All rights reserved.
33// Licensed under the MIT License.
44
5- import * as path from ' path' ;
5+ import * as path from " path" ;
66
7- export const PYTHON_LANGUAGE = ' python' ;
7+ export const PYTHON_LANGUAGE = " python" ;
88const folderName = path . basename ( __dirname ) ;
99export const EXTENSION_ROOT_DIR =
10- folderName === 'common' ? path . dirname ( path . dirname ( path . dirname ( __dirname ) ) ) : path . dirname ( __dirname ) ;
11- export const BUNDLED_PYTHON_SCRIPTS_DIR = path . join ( EXTENSION_ROOT_DIR , 'bundled' ) ;
12- export const SERVER_SCRIPT_PATH = path . join ( BUNDLED_PYTHON_SCRIPTS_DIR , 'tool' , `server.py` ) ;
13- export const DEBUG_SERVER_SCRIPT_PATH = path . join ( BUNDLED_PYTHON_SCRIPTS_DIR , 'tool' , `_debug_server.py` ) ;
10+ folderName === "common"
11+ ? path . dirname ( path . dirname ( path . dirname ( __dirname ) ) )
12+ : path . dirname ( __dirname ) ;
13+ export const BUNDLED_PYTHON_SCRIPTS_DIR = path . join (
14+ EXTENSION_ROOT_DIR ,
15+ "bundled" ,
16+ ) ;
17+ export const SERVER_SCRIPT_PATH = path . join (
18+ BUNDLED_PYTHON_SCRIPTS_DIR ,
19+ "tool" ,
20+ `server.py` ,
21+ ) ;
22+ export const DEBUG_SERVER_SCRIPT_PATH = path . join (
23+ BUNDLED_PYTHON_SCRIPTS_DIR ,
24+ "tool" ,
25+ `_debug_server.py` ,
26+ ) ;
1427
15- export const AppinsightsKey = '0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255' ;
28+ export const AppinsightsKey =
29+ "0c6ae279ed8443289764825290e4f9e2-1a736e7c-1324-4338-be46-fc2a58ae4d14-7255" ;
1630
1731export function isTestExecution ( ) : boolean {
18- return process . env . VSC_PYTHON_CI_TEST === '1' || isUnitTestExecution ( ) ;
32+ return process . env . VSC_PYTHON_CI_TEST === "1" || isUnitTestExecution ( ) ;
1933}
2034
2135/**
@@ -25,21 +39,22 @@ export function isTestExecution(): boolean {
2539 * @returns {boolean }
2640 */
2741export function isUnitTestExecution ( ) : boolean {
28- return process . env . VSC_PYTHON_UNIT_TEST === '1' ;
42+ return process . env . VSC_PYTHON_UNIT_TEST === "1" ;
2943}
3044
3145export namespace Commands {
32- export const Debug_In_Terminal = 'debugpy.debugInTerminal' ;
33- export const Debug_Using_Launch_Config = 'debugpy.debugUsingLaunchConfig' ;
34- export const TriggerEnvironmentSelection = 'debugpy.triggerEnvSelection' ;
35- export const PickLocalProcess = 'debugpy.pickLocalProcess' ;
36- export const PickArguments = 'debugpy.pickArgs' ;
37- export const ViewOutput = 'debugpy.viewOutput' ;
38- export const ClearStorage = 'debugpy.clearCacheAndReload' ;
39- export const Enable_SourceMap_Support = 'debugpy.enableSourceMapSupport' ;
40- export const SelectDebugConfig = 'debugpy.SelectAndInsertDebugConfiguration' ;
41- export const Set_Interpreter = 'python.setInterpreter' ;
42- export const ReportIssue = 'debugpy.reportIssue' ;
46+ export const Debug_In_Terminal = "debugpy.debugInTerminal" ;
47+ export const Debug_Using_Launch_Config = "debugpy.debugUsingLaunchConfig" ;
48+ export const TriggerEnvironmentSelection = "debugpy.triggerEnvSelection" ;
49+ export const PickLocalProcess = "debugpy.pickLocalProcess" ;
50+ export const PickArguments = "debugpy.pickArgs" ;
51+ export const ViewOutput = "debugpy.viewOutput" ;
52+ export const ClearStorage = "debugpy.clearCacheAndReload" ;
53+ export const Enable_SourceMap_Support = "debugpy.enableSourceMapSupport" ;
54+ export const SelectDebugConfig =
55+ "debugpy.SelectAndInsertDebugConfiguration" ;
56+ export const Set_Interpreter = "python.setInterpreter" ;
57+ export const ReportIssue = "debugpy.reportIssue" ;
4358}
4459
45- export type Channel = ' stable' | ' insiders' ;
60+ export type Channel = " stable" | " insiders" ;
0 commit comments