You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Slight lie but `.apply` will work with the `arguments` object.
40
+
argumentsasunknownasParameters<typeofgetAction>,
41
+
);
42
+
if(!action){
43
+
// TODO: console.error something interesting
44
+
returnaction;
45
+
}
46
+
47
+
action.run=asyncfunction(){
48
+
try{
49
+
constformattedText=awaitformat(ed.getValue(),{
50
+
parser: "typescript",
51
+
plugins: [estreePlugin,tsPlugin],
52
+
});
53
+
25
54
// TODO: switch to https://microsoft.github.io/monaco-editor/typedoc/interfaces/editor.ITextModel.html#pushEditOperations.pushEditOperations-1 in the future
0 commit comments