From baaaecc7a55b79908496bae485c48f4368fb35cb Mon Sep 17 00:00:00 2001 From: Johannes Rieken Date: Mon, 21 Feb 2022 11:40:09 +0100 Subject: [PATCH] fix error message for https://github.com/microsoft/vscode/issues/143031 --- src/vs/workbench/api/common/extHostLanguages.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vs/workbench/api/common/extHostLanguages.ts b/src/vs/workbench/api/common/extHostLanguages.ts index 9fcf2ee479c..908b194f58d 100644 --- a/src/vs/workbench/api/common/extHostLanguages.ts +++ b/src/vs/workbench/api/common/extHostLanguages.ts @@ -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; }