Bug Report
getters cannot be async, this quick fix results in a compile error:


🔎 Search Terms
async, get, property
🕗 Version & Regression Information
v4.3.0-dev.20120426
⏯ Playground Link
Doesn't seem to happen here, needs TS extension in vscode
💻 Code
This was the code:
get linuxDistro(): Promise<LinuxDistro> {
if (!isLinux) {
return Promise.resolve(LinuxDistro.Unknown);
}
const file = '/etc/os-release';
return SymlinkSupport.existsFile(file).then(async exists => {
if (!exists) {
return LinuxDistro.Unknown;
}
const buffer = await fsPromises.readFile(file);
const contents = buffer.toString();
if (/NAME="?Fedora"?/.test(contents)) {
return LinuxDistro.Fedora;
} else if (/NAME="?Ubuntu"?/.test(contents)) {
return LinuxDistro.Ubuntu;
} else {
return LinuxDistro.Unknown;
}
});
}
Bug Report
getters cannot be async, this quick fix results in a compile error:
🔎 Search Terms
async, get, property
🕗 Version & Regression Information
v4.3.0-dev.20120426
⏯ Playground Link
Doesn't seem to happen here, needs TS extension in vscode
💻 Code
This was the code: