We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
objectscript.autoAdjustName
Save As...
1 parent 5f3c831 commit ecb13efCopy full SHA for ecb13ef
src/extension.ts
@@ -1262,6 +1262,10 @@ export async function activate(context: vscode.ExtensionContext): Promise<any> {
1262
// No workspace folders are open
1263
return;
1264
}
1265
+ // Need to wait in case file was created using "Save As..."
1266
+ // because in that case the file gets created without
1267
+ // content, and then the content is written in after that
1268
+ await new Promise((resolve) => setTimeout(resolve, 100));
1269
const sourceContent = await vscode.workspace.fs.readFile(uri);
1270
if (
1271
sourceContent.length &&
0 commit comments