Skip to content

Commit

Permalink
'unknown document' error is thrown without mentioning what document is
Browse files Browse the repository at this point in the history
unknown #13158
  • Loading branch information
jfaltermeier committed Dec 14, 2023
1 parent de4c424 commit 00e30c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/plugin-ext/src/plugin/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export class DocumentsExtImpl implements DocumentsExt {
const uriString = uri.toString();
const data = this.editorsAndDocuments.getDocument(uriString);
if (!data) {
throw new Error('unknown document');
throw new Error('unknown document: ' + uriString);
}
data.acceptIsDirty(isDirty);
this._onDidChangeDocument.fire({
Expand All @@ -172,7 +172,7 @@ export class DocumentsExtImpl implements DocumentsExt {
const uriString = uri.toString();
const data = this.editorsAndDocuments.getDocument(uriString);
if (!data) {
throw new Error('unknown document');
throw new Error('unknown document: ' + uriString);
}
data.acceptIsDirty(isDirty);
data.onEvents(e);
Expand Down

0 comments on commit 00e30c1

Please sign in to comment.