File tree 2 files changed +0
-26
lines changed
src/vs/workbench/parts/terminal
2 files changed +0
-26
lines changed Original file line number Diff line number Diff line change @@ -349,16 +349,6 @@ export interface ITerminalInstance {
349
349
*/
350
350
setVisible ( visible : boolean ) : void ;
351
351
352
- /**
353
- * Attach a listener to the data stream from the terminal's pty process.
354
- *
355
- * @param listener The listener function which takes the processes' data stream (including
356
- * ANSI escape sequences).
357
- *
358
- * @deprecated onLineData will replace this.
359
- */
360
- onData ( listener : ( data : string ) => void ) : IDisposable ;
361
-
362
352
/**
363
353
* Attach a listener to listen for new lines added to this terminal instance.
364
354
*
Original file line number Diff line number Diff line change @@ -823,22 +823,6 @@ export class TerminalInstance implements ITerminalInstance {
823
823
return env ;
824
824
}
825
825
826
- public onData ( listener : ( data : string ) => void ) : lifecycle . IDisposable {
827
- let callback = ( message ) => {
828
- if ( message . type === 'data' ) {
829
- listener ( message . content ) ;
830
- }
831
- } ;
832
- this . _process . on ( 'message' , callback ) ;
833
- return {
834
- dispose : ( ) => {
835
- if ( this . _process ) {
836
- this . _process . removeListener ( 'message' , callback ) ;
837
- }
838
- }
839
- } ;
840
- }
841
-
842
826
public onLineData ( listener : ( lineData : string ) => void ) : lifecycle . IDisposable {
843
827
this . _onLineDataListeners . push ( listener ) ;
844
828
return {
You can’t perform that action at this time.
0 commit comments