This project is read-only.

Closed and develop branch are broken



Visual Studio 2021 IDE is unusable if there is an error in the ts files. Error markers are not shown and the navigation bar keeps showing "refreshing...".

The same project is loaded correctly in

Please fix it!

Best Regards
Closed Aug 22, 2013 at 9:11 PM by danquirk
Could you provide some code that exhibits this issue and re-open this bug? We certainly have been using and develop bits internally extensively and this is not a general issue with any code that produces error. If that is what you're seeing then there's something else very wrong with your machine at the moment which we should get to the bottom of.


ursuletzu wrote Aug 22, 2013 at 10:16 PM

I am writing a presentation about Typescript ....
This is the code that exhibits the problem on my machine:
class MyEnum {
    private _value = 0;
    private _names: any =
        "0": "None",
        "1": "Open",
        "2": "Closed"
    private _values = [0, 1, 2];

    constructor(arg) {
        if (this._values.indexOf(arg) >= 0)
            this._value = arg;
            this._value = 0;

    static None = new MyEnum(0);
    static Open = new MyEnum(1);
    static Closed = new MyEnum(2);

    public toString() {
        return this._names[_value]; //here is the error that should be reported

    public valueOf() {
        return this._value;

var e = MyEnum.Open;

RyanCavanaugh wrote Aug 27, 2013 at 5:46 PM

Working fine for me in latest sources and in the Playground. Are there any other files in the project?