File tree Expand file tree Collapse file tree 2 files changed +8
-6
lines changed
apps/intellij/src/main/kotlin/dev/nx/console/graph
libs/vscode/graph-base/src Expand file tree Collapse file tree 2 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,8 @@ abstract class NxGraphBrowserBase(protected val project: Project) : Disposable {
279
279
return true
280
280
}
281
281
" run-task" -> {
282
- event.payload?.taskId?.also {
282
+ val task = event.payload?.taskName ? : event.payload?.taskId
283
+ task?.also {
283
284
NxTaskExecutionManager .getInstance(project).execute(it)
284
285
}
285
286
return true
@@ -475,6 +476,7 @@ data class NxGraphInteractionPayload(
475
476
val targetName : String? = null ,
476
477
val url : String? = null ,
477
478
val taskId : String? = null ,
479
+ val taskName : String? = null ,
478
480
val targetConfigString : String? = null ,
479
481
val helpCommand : String? = null ,
480
482
val helpCwd : String? = null ,
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export async function handleGraphInteractionEventBase(event: {
17
17
18
18
commands . executeCommand (
19
19
'vscode.open' ,
20
- Uri . file ( join ( workspacePath , event . payload . url ) )
20
+ Uri . file ( join ( workspacePath , event . payload . url ) ) ,
21
21
) ;
22
22
return true ;
23
23
}
@@ -39,7 +39,7 @@ export async function handleGraphInteractionEventBase(event: {
39
39
} ) ;
40
40
CliTaskProvider . instance . executeTask ( {
41
41
command : 'run' ,
42
- positional : event . payload . taskId ,
42
+ positional : event . payload . taskName ?? event . payload . taskId ,
43
43
flags : [ ] ,
44
44
} ) ;
45
45
return true ;
@@ -57,7 +57,7 @@ export async function handleGraphInteractionEventBase(event: {
57
57
if ( ! project ) return ;
58
58
importNxPackagePath < typeof import ( 'nx/src/devkit-exports' ) > (
59
59
workspacePath ,
60
- 'src/devkit-exports'
60
+ 'src/devkit-exports' ,
61
61
) . then ( ( { detectPackageManager } ) => {
62
62
const pkgManager = detectPackageManager ( workspacePath ) ;
63
63
tasks . executeTask (
@@ -77,8 +77,8 @@ export async function handleGraphInteractionEventBase(event: {
77
77
env : {
78
78
NX_CONSOLE : 'true' ,
79
79
} ,
80
- } )
81
- )
80
+ } ) ,
81
+ ) ,
82
82
) ;
83
83
} ) ;
84
84
} ) ;
You can’t perform that action at this time.
0 commit comments