fix: file language returns correct value after saving
Signed-off-by: mellobacon <mellodev@outlook.com>
mellobacon committed
Nov 2, 2023 at 01:21 UTC
3b5a6e0152fd09f59d147c56c1b39ed0e05ecdde
1 file changed
+1
-1
src/lib/File.ts
+1
-1
@@ -176,7 +176,7 @@ export async function saveFile(saveAs = false) {
176
"fileType": fileType,
177
"encoding": tab.content.getEncoding(),
178
"hasBom": tab.content.hasBom(),
179
- "language": tab.content.getLang(fileType),
179
+ "language": await tab.content.getLang(fileType),
180
"readonly": false,
181
});
182
tab.setActive(tab.id);