You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
calling API method workspace.openTextDocument({content: 'some content'}) or workspace.openTextDocument({}) throws exception, but should work correctly.
The problem lines are in file src\vs\workbench\api\node\extHost.api.impl.ts:
let options = uriOrFileNameOrOptions as { language?: string; content?: string; };
if (!options || typeof options.language === 'string') {
uriPromise = extHostDocuments.createDocumentData(options);
}
should be something like this:
let options = uriOrFileNameOrOptions as { language?: string; content?: string; };
if (options) {
uriPromise = extHostDocuments.createDocumentData(options);
}
The text was updated successfully, but these errors were encountered:
calling API method
workspace.openTextDocument({content: 'some content'})
orworkspace.openTextDocument({})
throws exception, but should work correctly.The problem lines are in file
src\vs\workbench\api\node\extHost.api.impl.ts
:should be something like this:
The text was updated successfully, but these errors were encountered: