mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Use .then()
for Thenable
This commit is contained in:
parent
56e128a979
commit
a6b0c056de
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue