You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just for tracking the next time "we" (well, technically VS Code [1]) upgrade the TypeScript compiler version or the runtime, these are the smaller things we can bring along.
asyncfunctionwriteCommunityFile(snippetFile: SnippetFile,filePath: string){constsnippetText=serializeSnippetFile(snippetFile);
using file=awaitfs.open(filePath,"wx");awaitfile.write(snippetText);// No need to explicitly close - it will be automatically disposed}
For this to work, you need:
TypeScript 5.2 or later
The target compiler option set to "ES2022" or later
The lib compiler option to include "ES2024.Symbol" or later
[1] although now we also have to include QuickJS, the Cursorless JetBrains embedded JavaScript runtime as well 🤔. Ideally we could have a sense for how easily those are to upgrade
The text was updated successfully, but these errors were encountered:
Just for tracking the next time "we" (well, technically VS Code [1]) upgrade the TypeScript compiler version or the runtime, these are the smaller things we can bring along.
TypeScript 5.2 + ES2022 target
using
https://devblogs.microsoft.com/typescript/announcing-typescript-5-2/#using-declarations-and-explicit-resource-management
For this to work, you need:
[1] although now we also have to include QuickJS, the Cursorless JetBrains embedded JavaScript runtime as well 🤔. Ideally we could have a sense for how easily those are to upgrade
The text was updated successfully, but these errors were encountered: