Skip to content

Commit

Permalink
Update problems.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ThuF authored Aug 22, 2024
1 parent 0d4ceff commit faa1b0a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs-api/docs/platform/problems.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ Problems module provides utility functions for managing and logging problems/iss
=== "ECMA6"

```javascript
import { problems } from "sdk/platform";
import { Problems } from "sdk/platform";
import { response } from "sdk/http";

problems.save("/my-project/my-file", problems.ACTIVE, "line: 4", "row: 10", "", "Some problem / at line 4", "Expected end of line ;", "ProblemsModule", "my-file.mjs", "my-file.mjs");
problems.save("/my-project/my-file", Problems.ACTIVE, "line: 4", "row: 10", "", "Some problem / at line 4", "Expected end of line ;", "ProblemsModule", "my-file.mjs", "my-file.mjs");

let myProblems = problems.fetchAllProblems();
const myProblems = Problems.fetchAllProblems();

response.println(myProblems);
response.println(JSON.stringify(myProblems));

problems.clearAllProblems();
Problems.clearAllProblems();
```

<!-- === "CommonJS"
Expand Down

0 comments on commit faa1b0a

Please sign in to comment.