Skip to content

stale typescript errors after editing #317522

@aeschli

Description

@aeschli

Version: 1.121.0-insider (Universal)
Commit: f6cfa2e
Date: 2026-05-19T11:51:53+02:00
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 24.6.0

While working on the vscode repo, I regularly (every 1-2 hours) I get stale typescript errors that hang around in the editor and problems view right after I made a change.
Further typing in the file does not make the errors go away

Image

The watch tasks running in terminals show no error.

Image

Reload window will make the error go away.

The output view typescript-native (LSP) does not contain the error

typescript-native (LSP) output
2026-05-20 15:02:43.171 [trace] Received response 'textDocument/diagnostic - (9523)' in 2ms.
Result: {
    "kind": "full",
    "items": [
        {
            "range": {
                "start": {
                    "line": 95,
                    "character": 16
                },
                "end": {
                    "line": 95,
                    "character": 27
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'chatService' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 96,
                    "character": 24
                },
                "end": {
                    "line": 96,
                    "character": 43
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'chatSessionsService' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 327,
                    "character": 65
                },
                "end": {
                    "line": 327,
                    "character": 74
                }
            },
            "severity": 4,
            "code": 6385,
            "source": "ts",
            "message": "'Workbench' is deprecated.",
            "tags": [
                2
            ]
        },
        {
            "range": {
                "start": {
                    "line": 327,
                    "character": 76
                },
                "end": {
                    "line": 327,
                    "character": 105
                }
            },
            "severity": 4,
            "code": 6385,
            "source": "ts",
            "message": "'(contribution: IWorkbenchContributionSignature<[languageFeaturesService: ILanguageFeaturesService, chatWidgetService: IChatWidgetService, chatSlashCommandService: IChatSlashCommandService, harnessService: ICustomizationHarnessService, chatService: IChatService, chatSessionsService: IChatSessionsService, mcpService: IMcpService]>, phase: LifecyclePhase.Restored | LifecyclePhase.Eventually): void' is deprecated.",
            "tags": [
                2
            ],
            "relatedInformation": [
                {
                    "location": {
                        "uri": "file:///Users/martinae/workspaces/vscode/src/vs/workbench/common/contributions.ts",
                        "range": {
                            "start": {
                                "line": 113,
                                "character": 4
                            },
                            "end": {
                                "line": 114,
                                "character": 2
                            }
                        }
                    },
                    "message": "The declaration was marked as deprecated here."
                }
            ]
        },
        {
            "range": {
                "start": {
                    "line": 343,
                    "character": 102
                },
                "end": {
                    "line": 343,
                    "character": 107
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'token' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 365,
                    "character": 56
                },
                "end": {
                    "line": 365,
                    "character": 57
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'i' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 383,
                    "character": 102
                },
                "end": {
                    "line": 383,
                    "character": 107
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'token' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 449,
                    "character": 83
                },
                "end": {
                    "line": 449,
                    "character": 84
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'i' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 487,
                    "character": 102
                },
                "end": {
                    "line": 487,
                    "character": 107
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'token' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 518,
                    "character": 79
                },
                "end": {
                    "line": 518,
                    "character": 80
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'i' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 555,
                    "character": 102
                },
                "end": {
                    "line": 555,
                    "character": 107
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'token' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 642,
                    "character": 65
                },
                "end": {
                    "line": 642,
                    "character": 74
                }
            },
            "severity": 4,
            "code": 6385,
            "source": "ts",
            "message": "'Workbench' is deprecated.",
            "tags": [
                2
            ]
        },
        {
            "range": {
                "start": {
                    "line": 642,
                    "character": 76
                },
                "end": {
                    "line": 642,
                    "character": 105
                }
            },
            "severity": 4,
            "code": 6385,
            "source": "ts",
            "message": "'(contribution: IWorkbenchContributionSignature<[languageFeaturesService: ILanguageFeaturesService, chatWidgetService: IChatWidgetService, chatAgentService: IChatAgentService, chatAgentNameService: IChatAgentNameService, chatSessionsService: IChatSessionsService]>, phase: LifecyclePhase.Restored | LifecyclePhase.Eventually): void' is deprecated.",
            "tags": [
                2
            ],
            "relatedInformation": [
                {
                    "location": {
                        "uri": "file:///Users/martinae/workspaces/vscode/src/vs/workbench/common/contributions.ts",
                        "range": {
                            "start": {
                                "line": 113,
                                "character": 4
                            },
                            "end": {
                                "line": 114,
                                "character": 2
                            }
                        }
                    },
                    "message": "The declaration was marked as deprecated here."
                }
            ]
        },
        {
            "range": {
                "start": {
                    "line": 659,
                    "character": 11
                },
                "end": {
                    "line": 659,
                    "character": 19
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'accessor' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 906,
                    "character": 68
                },
                "end": {
                    "line": 906,
                    "character": 73
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'token' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 953,
                    "character": 56
                },
                "end": {
                    "line": 953,
                    "character": 61
                }
            },
            "severity": 4,
            "code": 6133,
            "source": "ts",
            "message": "'range' is declared but its value is never read.",
            "tags": [
                1
            ]
        },
        {
            "range": {
                "start": {
                    "line": 1275,
                    "character": 65
                },
                "end": {
                    "line": 1275,
                    "character": 74
                }
            },
            "severity": 4,
            "code": 6385,
            "source": "ts",
            "message": "'Workbench' is deprecated.",
            "tags": [
                2
            ]
        },
        {
            "range": {
                "start": {
                    "line": 1275,
                    "character": 76
                },
                "end": {
                    "line": 1275,
                    "character": 105
                }
            },
            "severity": 4,
            "code": 6385,
            "source": "ts",
            "message": "'(contribution: IWorkbenchContributionSignature<[historyService: IHistoryService, workspaceContextService: IWorkspaceContextService, searchService: ISearchService, labelService: ILabelService, languageFeaturesService: ILanguageFeaturesService, chatWidgetService: ... 7 more ..., outlineService: IChatSessionsService]>, phase: LifecyclePhase.Restored | LifecyclePhase.Eventually): void' is deprecated.",
            "tags": [
                2
            ],
            "relatedInformation": [
                {
                    "location": {
                        "uri": "file:///Users/martinae/workspaces/vscode/src/vs/workbench/common/contributions.ts",
                        "range": {
                            "start": {
                                "line": 113,
                                "character": 4
                            },
                            "end": {
                                "line": 114,
                                "character": 2
                            }
                        }
                    },
                    "message": "The declaration was marked as deprecated here."
                }
            ]
        },
        {
            "range": {
                "start": {
                    "line": 1383,
                    "character": 65
                },
                "end": {
                    "line": 1383,
                    "character": 74
                }
            },
            "severity": 4,
            "code": 6385,
            "source": "ts",
            "message": "'Workbench' is deprecated.",
            "tags": [
                2
            ]
        },
        {
            "range": {
                "start": {
                    "line": 1383,
                    "character": 76
                },
                "end": {
                    "line": 1383,
                    "character": 105
                }
            },
            "severity": 4,
            "code": 6385,
            "source": "ts",
            "message": "'(contribution: IWorkbenchContributionSignature<[languageFeaturesService: ILanguageFeaturesService, chatWidgetService: IChatWidgetService, chatAgentService: IChatAgentService]>, phase: LifecyclePhase.Restored | LifecyclePhase.Eventually): void' is deprecated.",
            "tags": [
                2
            ],
            "relatedInformation": [
                {
                    "location": {
                        "uri": "file:///Users/martinae/workspaces/vscode/src/vs/workbench/common/contributions.ts",
                        "range": {
                            "start": {
                                "line": 113,
                                "character": 4
                            },
                            "end": {
                                "line": 114,
                                "character": 2
                            }
                        }
                    },
                    "message": "The declaration was marked as deprecated here."
                }
            ]
        }
    ]
}
2026-05-20 15:02:43.171 [trace] Received notification 'window/logMessage'.
Params: {
    "type": 3,
    "message": "handled method 'textDocument/diagnostic' (9523) in 206.833µs"
}
2026-05-20 15:02:43.425 [trace] Sending request 'textDocument/codeAction - (9525)'.
Params: {
    "textDocument": {
        "uri": "file:///Users/martinae/workspaces/vscode/src/vs/workbench/contrib/chat/test/browser/aiCustomization/aiCustomizationItemsModel.test.ts"
    },
    "range": {
        "start": {
            "line": 269,
            "character": 18
        },
        "end": {
            "line": 269,
            "character": 18
        }
    },
    "context": {
        "diagnostics": [],
        "triggerKind": 2
    }
}
typescript-native output
2026-05-20 15:11:46.482 [info] 
======== Cache Statistics ========
2026-05-20 15:11:46.482 [info] Open file count:        9
2026-05-20 15:11:46.482 [info] Cached disk files:   7145
2026-05-20 15:11:46.482 [info] Realpath aliases:       0
2026-05-20 15:11:46.482 [info] Project count:          1
2026-05-20 15:11:46.483 [info] Config count:           2
2026-05-20 15:11:46.483 [info] Parse cache size:             7031
2026-05-20 15:11:46.483 [info] Program count:                   1
2026-05-20 15:11:46.483 [info] Extended config cache size:      1
2026-05-20 15:11:46.483 [info] Auto Imports:
2026-05-20 15:11:46.483 [info] 	Unique packages (by realpath): 0
2026-05-20 15:11:46.483 [info] 	Project buckets:
2026-05-20 15:11:46.484 [info] 		/users/martinae/workspaces/vscode/src/tsconfig.json (dirty):
2026-05-20 15:11:46.484 [info] 			Files: 6248
2026-05-20 15:11:46.484 [info] 			Exports: 24390
2026-05-20 15:11:46.484 [info] 	node_modules buckets:
2026-05-20 15:11:46.484 [info] 		/users/martinae/workspaces/vscode:
2026-05-20 15:11:46.484 [info] 			Collected packages: 80
2026-05-20 15:11:46.484 [info] 			Total packages: 1071
2026-05-20 15:11:46.484 [info] 			Files: 310
2026-05-20 15:11:46.484 [info] 			Exports: 10364
2026-05-20 15:11:46.486 [info] 			Recursive search: 18 packages
2026-05-20 15:11:46.486 [info] 
======== Runtime Metrics ========
/gc/cleanups/executed:cleanups = 0
/gc/cleanups/queued:cleanups = 0
/gc/cycles/automatic:gc-cycles = 32
/gc/cycles/forced:gc-cycles = 24
/gc/cycles/total:gc-cycles = 56
/gc/finalizers/executed:finalizers = 0
/gc/finalizers/queued:finalizers = 0
/gc/gogc:percent = 100
/gc/gomemlimit:bytes = 9223372036854775807
/gc/heap/allocs:bytes = 15106967712
/gc/heap/allocs:objects = 71468868
/gc/heap/frees:bytes = 12749782456
/gc/heap/frees:objects = 66422677
/gc/heap/goal:bytes = 4568739050
/gc/heap/live:bytes = 2284148864
/gc/heap/objects:objects = 5046191
/gc/heap/tiny/allocs:objects = 1779785
/gc/limiter/last-enabled:gc-cycle = 0
/gc/scan/globals:bytes = 427434
/gc/scan/heap:bytes = 2175095528
/gc/scan/stack:bytes = 13888
/gc/scan/total:bytes = 2175536850
/gc/stack/starting-size:bytes = 2048
/memory/classes/heap/free:bytes = 206438400
/memory/classes/heap/objects:bytes = 2357185256
/memory/classes/heap/released:bytes = 1514684416
/memory/classes/heap/stacks:bytes = 11730944
/memory/classes/heap/unused:bytes = 217511192
/memory/classes/metadata/mcache/free:bytes = 0
/memory/classes/metadata/mcache/inuse:bytes = 32144
/memory/classes/metadata/mspan/free:bytes = 19047520
/memory/classes/metadata/mspan/inuse:bytes = 29096480
/memory/classes/metadata/other:bytes = 25563632
/memory/classes/os-stacks:bytes = 0
/memory/classes/other:bytes = 6551518
/memory/classes/profiling/buckets:bytes = 11180202
/memory/classes/total:bytes = 4399021704
2026-05-20 15:11:46.487 [info] 
2026-05-20 15:11:46.488 [info] Updated watches in 38.5µs

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugimportantIssue identified as high-prioritytypescriptTypescript support issues

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions