Skip to content

Commit

Permalink
Update editor.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
minestarks authored Sep 9, 2024
1 parent 2719334 commit 1bd3b87
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions playground/src/editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -255,11 +255,7 @@ export function Editor(props: {
// will be invalid as it captures the *original* props.languageService
// and not the updated one. Not a problem currently since the language
// service is never updated, but not correct either.
srcModel.onDidChangeContent(async (e) => {
e.changes.forEach((change) => {
log.debug("changes for version %d are: %o", e.versionId, change);
});

srcModel.onDidChangeContent(async () => {
// Reset the shot errors whenever the document changes.
// The markers will be refreshed by the onDiagnostics callback
// when the language service finishes checking the document.
Expand Down

0 comments on commit 1bd3b87

Please sign in to comment.