I’ve been making an extension in VSCode, and there are no listed syntax errors. The code looks something like this:
export abstract class Foo {
public abstract toString(): string;
}
export class Bar extends Foo {
public override toString(): string {
return "foobar";
}
}
When I import the extension I get hundreds of syntax errors, like " ‘=’ expected ".
Both the extension project and the test project have the same compilerOptions in their tsconfig.json.
Here’s the link to the extension github. I was mainly looking at Vector
and Vector3
.
The extension still has some messy/unused code and formatting issues, but no syntax errors in VSCode. What could be causing this, and is there a different syntax I should be using? Thanks.