mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
feat(editors/vscode): clear diagnostics on file deletion (#6326)
closes #6325
This commit is contained in:
parent
03bc041ddf
commit
f2721375ea
1 changed files with 7 additions and 0 deletions
|
|
@ -181,6 +181,13 @@ export async function activate(context: ExtensionContext) {
|
|||
serverOptions,
|
||||
clientOptions,
|
||||
);
|
||||
|
||||
workspace.onDidDeleteFiles((event) => {
|
||||
event.files.forEach((fileUri) => {
|
||||
client.diagnostics?.delete(fileUri);
|
||||
});
|
||||
});
|
||||
|
||||
workspace.onDidChangeConfiguration((e) => {
|
||||
let isAffected = e.affectsConfiguration('oxc_language_server');
|
||||
if (!isAffected) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue