Website Structure
This commit is contained in:
parent
62812f2090
commit
71f0676a62
22365 changed files with 4265753 additions and 791 deletions
25
Frontend-Learner/node_modules/vite-plugin-checker/dist/FileDiagnosticManager.js
generated
vendored
Normal file
25
Frontend-Learner/node_modules/vite-plugin-checker/dist/FileDiagnosticManager.js
generated
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
class FileDiagnosticManager {
|
||||
diagnostics = [];
|
||||
/**
|
||||
* Initialize and reset the diagnostics array
|
||||
*/
|
||||
initWith(diagnostics) {
|
||||
this.diagnostics = [...diagnostics];
|
||||
}
|
||||
getDiagnostics(fileName) {
|
||||
if (fileName) {
|
||||
return this.diagnostics.filter((f) => f.id === fileName);
|
||||
}
|
||||
return this.diagnostics;
|
||||
}
|
||||
updateByFileId(fileId, next) {
|
||||
this.diagnostics = this.diagnostics.filter((d) => d.id !== fileId);
|
||||
if (next == null ? void 0 : next.length) {
|
||||
this.diagnostics.push(...next);
|
||||
}
|
||||
}
|
||||
}
|
||||
export {
|
||||
FileDiagnosticManager
|
||||
};
|
||||
//# sourceMappingURL=FileDiagnosticManager.js.map
|
||||
Loading…
Add table
Add a link
Reference in a new issue