diff --git a/CHANGELOG.md b/CHANGELOG.md index 69070884f..e28796e98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # What's New? -## 1.2.0 +## 1.2.1 Thank you to the following CMake Tools contributors: koemai, bjosa, emanspeaks, som1lse, dcourtois, tsing80, andy-held, notskm, thezogoth, yokuyuki, dbird137, fabianogk, randshot. diff --git a/package.json b/package.json index 01254e668..07feb780b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "cmake-tools", "displayName": "CMake Tools", "description": "Extended CMake support in Visual Studio Code", - "version": "1.2.0", + "version": "1.2.1", "publisher": "ms-vscode", "repository": { "type": "git", diff --git a/src/extension.ts b/src/extension.ts index 2638e8437..a617117b7 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -1306,12 +1306,11 @@ class SchemaProvider implements vscode.TextDocumentContentProvider { const fileName: string = uri.fsPath; const locale: string = util.getLocaleId(); let localizedFilePath: string = path.join(util.thisExtensionPath(), "dist/schema/", locale, fileName); - return util.checkFileExists(localizedFilePath).then(fileExists => { - if (!fileExists) { - localizedFilePath = path.join(util.thisExtensionPath(), fileName); - } - return fs.readFile(localizedFilePath, "utf8"); - }); + const fileExists: boolean = await util.checkFileExists(localizedFilePath); + if (!fileExists) { + localizedFilePath = path.join(util.thisExtensionPath(), fileName); + } + return fs.readFile(localizedFilePath, "utf8"); } }