@@ -27,7 +27,7 @@ export class ObjectScriptCodeLensProvider implements vscode.CodeLensProvider {
27
27
}
28
28
const className = file . name . split ( "." ) . slice ( 0 , - 1 ) . join ( "." ) ;
29
29
30
- const { debugThisMethod, runThisMethod } = config ( "debug" ) ;
30
+ const { debugThisMethod, copyToClipboard } = config ( "debug" ) ;
31
31
let inComment = false ;
32
32
for ( let i = 0 ; i < document . lineCount ; i ++ ) {
33
33
const line = document . lineAt ( i ) ;
@@ -49,7 +49,7 @@ export class ObjectScriptCodeLensProvider implements vscode.CodeLensProvider {
49
49
const [ , name , parens ] = methodMatch ;
50
50
51
51
debugThisMethod && result . push ( this . addDebugThisMethod ( i , [ `##class(${ className } ).${ name } ` , parens !== "()" ] ) ) ;
52
- runThisMethod && result . push ( this . addRunThisMethod ( i , [ `Do ##class(${ className } ).${ name } ()` ] ) ) ;
52
+ copyToClipboard && result . push ( this . addCopyToClipboard ( i , [ `##class(${ className } ).${ name } ()` ] ) ) ;
53
53
}
54
54
}
55
55
return result ;
@@ -64,10 +64,10 @@ export class ObjectScriptCodeLensProvider implements vscode.CodeLensProvider {
64
64
}
65
65
const routineName = file . name . split ( "." ) . slice ( 0 , - 1 ) . join ( "." ) ;
66
66
67
- const { debugThisMethod, runThisMethod } = config ( "debug" ) ;
67
+ const { debugThisMethod, copyToClipboard } = config ( "debug" ) ;
68
68
69
69
debugThisMethod && result . push ( this . addDebugThisMethod ( 0 , [ `^${ routineName } ` , false ] ) ) ;
70
- runThisMethod && result . push ( this . addRunThisMethod ( 0 , [ `Do ^${ routineName } ` ] ) ) ;
70
+ copyToClipboard && result . push ( this . addCopyToClipboard ( 0 , [ `^${ routineName } ` ] ) ) ;
71
71
72
72
let inComment = false ;
73
73
for ( let i = 1 ; i < document . lineCount ; i ++ ) {
@@ -90,7 +90,7 @@ export class ObjectScriptCodeLensProvider implements vscode.CodeLensProvider {
90
90
const [ , name , parens ] = labelMatch ;
91
91
92
92
debugThisMethod && result . push ( this . addDebugThisMethod ( i , [ `${ name } ^${ routineName } ` , parens !== "()" ] ) ) ;
93
- runThisMethod && result . push ( this . addRunThisMethod ( i , [ `Do ${ name } ^${ routineName } ` ] ) ) ;
93
+ copyToClipboard && result . push ( this . addCopyToClipboard ( i , [ `${ name } ^${ routineName } ` ] ) ) ;
94
94
}
95
95
}
96
96
@@ -105,10 +105,10 @@ export class ObjectScriptCodeLensProvider implements vscode.CodeLensProvider {
105
105
} ) ;
106
106
}
107
107
108
- private addRunThisMethod ( line : number , args : any [ ] ) {
108
+ private addCopyToClipboard ( line : number , args : any [ ] ) {
109
109
return new vscode . CodeLens ( new vscode . Range ( line , 0 , line , 80 ) , {
110
- title : `Run this method in terminal ` ,
111
- command : "vscode-objectscript.runInTerminal " ,
110
+ title : `Copy Invocation to Clipboard ` ,
111
+ command : "vscode-objectscript.copyToClipboard " ,
112
112
arguments : args ,
113
113
} ) ;
114
114
}
0 commit comments