Skip to content

[Bug] cannot access top level languages via monaco-editor/esm/vs/editor/editor.api.js #5133

@kingyue737

Description

@kingyue737

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

Monaco Editor Playground Code

Reproduction Steps

I'm using the minimal entry monaco-editor/esm/vs/editor/editor.api.js

import * as monaco from "monaco-editor/esm/vs/editor/editor.api.js";

monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions(
  diagnosticsOptions,
);

but meet the following error in v0.55.1:

Property 'typescriptDefaults' does not exist on type '{ deprecated: true; }'.ts(2339)

Then I tried the top level typescript but it seems not exported from monaco-editor/esm/vs/editor/editor.api.js:

Module '"monaco-editor/esm/vs/editor/editor.api.js"' has no exported member 'typescript'.ts(2305)

Actual (Problematic) Behavior

No response

Expected Behavior

No response

Additional Context

No response

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions