11/7/2022 0 Comments Lua get cwd![]() ![]() ReplReader pump that keeps polling this method. ReplManager will set up a separate thread with a Read and return some bytes from REPL’s incoming stream, blocking as A REPL over SublimeText’s internal Python interpreter.Īll these can be found in the plugin’s repl/ subdirectory.Ī REPL class is expected to provide a standard interface for SublimeREPL integration: read_bytes ( ) ¶ This is only used by Execnet Python integration This is only used by PowerShell integration. There are three integrations that provide their own classes: Presumably having been spawned externally, and the REPL connects to it over The process is connected to the output and the input of the REPL Running in the REPL is a subprocess of the editor. ![]() Class SubprocessRepl for subprocess-based REPLs.When interval is 0.0 or None compares system CPU times elapsed since last call or module import, returning immediately. When interval is > 0.0 compares system CPU times elapsed before and after the interval (blocking). New integrations canĮither provide their own class, or use one of the base classes that ship with Return a float representing the current system-wide CPU utilization as a percentage. For this reason, actual REPL configuration is concentratedĪll REPL instances are descendants of Repl. This allows the command paletteĬonfiguration to specify a reference to the REPL configuration command instead The configuration item until one is found. Item and the name of a file where the configuration is stored, and scans theĪvailable Sublime configuration folders for the file and within the file for Its function is to execute another command. This command is a wrapper that is used in the command palette configuration. Latter is achieved by the command run_existing_window_command (class It is obvious that the REPL configuration is concentrated in the menu files,Īnd the palette configuration only refers to those by ID and file name. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |