We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d2d9498 commit 0da9f3fCopy full SHA for 0da9f3f
1 file changed
extensions/json-language-features/client/src/jsonMain.ts
@@ -188,6 +188,9 @@ export function activate(context: ExtensionContext) {
188
// handle content request
189
client.onRequest(VSCodeContentRequest.type, (uriPath: string) => {
190
const uri = Uri.parse(uriPath);
191
+ if (uri.scheme === 'untitled') {
192
+ return Promise.reject(new Error(localize('untitled.schema', 'Unable to load {0}', uri.toString())));
193
+ }
194
if (uri.scheme !== 'http' && uri.scheme !== 'https') {
195
return workspace.openTextDocument(uri).then(doc => {
196
schemaDocuments[uri.toString()] = true;
0 commit comments