import { window , StatusBarAlignment , StatusBarItem } from 'vscode' ; import * as nls from 'vscode-nls' ; import * as vscode from 'vscode' ; const localize = nls . loadMessageBundle ( ) ; description see https author https://github.com/AlencarGabriel
 export class MultiThread { private _statusBarItem : StatusBarItem ; constructor ( ) { this . _statusBarItem = window . createStatusBarItem ( StatusBarAlignment . Left ) ; this . _statusBarItem . tooltip = localize ( 'src.MultiThread.DepureMulti' , 'Debug Multiple Threads' ) ; this . _statusBarItem . command = "advpl.multiThread" ; this . changeItem ( ) ; this . _statusBarItem . show ( ) ; } public changeItem ( debug_multiThread ? ) { if ( debug_multiThread === undefined ) { debug_multiThread = vscode . workspace . getConfiguration ( "advpl" ) . get ( "debug_multiThread" ) ; } if ( debug_multiThread === true ) { this . _statusBarItem . text = "$(tasklist) Multi-Thread: " + localize ( 'src.MultiThread.yesText' , 'Yes' ) ; } else { this . _statusBarItem . text = "$(three-bars) Multi-Thread: " + localize ( 'src.MultiThread.noText' , 'No' ) ; } } }