mirror of
https://github.com/Silverquark/dance.git
synced 2024-09-11 10:45:43 +03:00
Target ES2018, fixing issues with await in dance.run.
This commit is contained in:
parent
d939ed6d1b
commit
b1d408eb10
@ -271,8 +271,8 @@ export class CommandDescriptor<Input extends InputKind = InputKind> {
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
console.error(e.stack);
|
||||
throw e;
|
||||
vscode.window.showErrorMessage(e.toString());
|
||||
return;
|
||||
}
|
||||
|
||||
if (flags & (CommandFlags.SwitchToInsertBefore | CommandFlags.SwitchToInsertAfter)) {
|
||||
|
@ -21,7 +21,7 @@ registerCommand(Command.run, CommandFlags.IgnoreInHistory, async (_, state) => {
|
||||
try {
|
||||
func = AsyncFunction("vscode", "args", code) as any;
|
||||
} catch (e) {
|
||||
throw new Error(`cannot parse function body: ${code}`);
|
||||
throw new Error(`cannot parse function body: ${code}: ${e}`);
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es2015",
|
||||
"target": "ES2018",
|
||||
"outDir": "out",
|
||||
"lib": ["es6"],
|
||||
"sourceMap": true,
|
||||
|
Loading…
Reference in New Issue
Block a user