mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-06 04:08:40 +00:00
Use .then()
for Thenable
This commit is contained in:
parent
56e128a979
commit
a6b0c056de
@ -158,9 +158,7 @@ export async function deactivate() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function bootstrap(config: Config, state: PersistentState): Promise<string> {
|
async function bootstrap(config: Config, state: PersistentState): Promise<string> {
|
||||||
try {
|
await vscode.workspace.fs.createDirectory(config.globalStorageUri).then();
|
||||||
await vscode.workspace.fs.createDirectory(config.globalStorageUri);
|
|
||||||
} catch {}
|
|
||||||
|
|
||||||
if (!config.currentExtensionIsNightly) {
|
if (!config.currentExtensionIsNightly) {
|
||||||
await state.updateNightlyReleaseId(undefined);
|
await state.updateNightlyReleaseId(undefined);
|
||||||
|
Loading…
Reference in New Issue
Block a user