Skip to content

Commit

Permalink
accept suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyhhssyy committed Dec 18, 2023
1 parent 63f9d19 commit e1fc314
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,8 +1045,9 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
RESTDebugPanel.create(context.extensionUri)
),
vscode.commands.registerCommand("vscode-objectscript.exportCurrentFile", exportCurrentFile),
vscode.workspace.onDidCreateFiles((e: vscode.FileCreateEvent) =>
Promise.all(
vscode.workspace.onDidCreateFiles((e: vscode.FileCreateEvent) =>{

Check failure on line 1048 in src/extension.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Insert `·`
if (!config("autoAdjustName")) return;
return Promise.all(
e.files
.filter((uri) => !filesystemSchemas.includes(uri.scheme))
.filter((uri) => ["cls", "inc", "int", "mac"].includes(uri.path.split(".").pop().toLowerCase()))
Expand Down Expand Up @@ -1079,6 +1080,7 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
return vscode.workspace.fs.writeFile(uri, new TextEncoder().encode(newContent.content.join("\n")));
})
)

Check failure on line 1082 in src/extension.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Insert `;`
}

Check failure on line 1083 in src/extension.ts

View workflow job for this annotation

GitHub Actions / build (ubuntu-latest)

Replace `······}⏎····` with `····}`
),
vscode.window.onDidChangeActiveTextEditor((editor: vscode.TextEditor) => {
if (config("openClassContracted") && editor && editor.document.languageId === "objectscript-class") {
Expand Down

0 comments on commit e1fc314

Please sign in to comment.