Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyhhssyy committed Dec 28, 2023
1 parent e1fc314 commit a3737cf
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,7 @@ 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) =>{
vscode.workspace.onDidCreateFiles((e: vscode.FileCreateEvent) => {
if (!config("autoAdjustName")) return;
return Promise.all(
e.files
Expand Down Expand Up @@ -1079,9 +1079,8 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
// Write the new content to the file
return vscode.workspace.fs.writeFile(uri, new TextEncoder().encode(newContent.content.join("\n")));
})
)
}
),
);
}),
vscode.window.onDidChangeActiveTextEditor((editor: vscode.TextEditor) => {
if (config("openClassContracted") && editor && editor.document.languageId === "objectscript-class") {
const uri: string = editor.document.uri.toString();
Expand Down

0 comments on commit a3737cf

Please sign in to comment.