File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
rewrite-javascript/rewrite/src/rpc/request Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,8 @@ export class PrepareRecipe {
124124 const { JsonVisitor} = require ( "../../json" ) ;
125125 const { JavaScriptVisitor} = require ( "../../javascript" ) ;
126126 const { JavaVisitor} = require ( "../../java" ) ;
127+ const { PlainTextVisitor} = require ( "../../text" ) ;
128+ const { YamlVisitor} = require ( "../../yaml" ) ;
127129
128130 if ( v instanceof JsonVisitor ) {
129131 treeType = "org.openrewrite.json.tree.Json" ;
@@ -133,6 +135,10 @@ export class PrepareRecipe {
133135 treeType = "org.openrewrite.javascript.tree.JS" ;
134136 } else if ( v instanceof JavaVisitor ) {
135137 treeType = "org.openrewrite.java.tree.J" ;
138+ } else if ( v instanceof PlainTextVisitor ) {
139+ treeType = "org.openrewrite.text.PlainText" ;
140+ } else if ( v instanceof YamlVisitor ) {
141+ treeType = "org.openrewrite.yaml.tree.Yaml" ;
136142 }
137143 if ( treeType ) {
138144 preconditions . push ( {
You can’t perform that action at this time.
0 commit comments