This commit is contained in:
Johannes Rieken
2022-02-21 11:40:09 +01:00
parent b15eb66b6c
commit baaaecc7a5

View File

@@ -42,7 +42,7 @@ export class ExtHostLanguages implements ExtHostLanguagesShape {
await this._proxy.$changeLanguage(uri, languageId);
const data = this._documents.getDocumentData(uri);
if (!data) {
throw new Error(`document '${uri.toString}' NOT found`);
throw new Error(`document '${uri.toString()}' NOT found`);
}
return data.document;
}