mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 19:42:56 +01:00
latest -> latest stable (versionNumber)
This commit is contained in:
parent
84d1bed101
commit
dc5c24591b
1 changed files with 14 additions and 12 deletions
|
|
@ -1,24 +1,24 @@
|
||||||
import { autorun } from "mobx";
|
import { autorun } from "mobx";
|
||||||
import { observer } from "mobx-react";
|
import { observer } from "mobx-react";
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
import { ButtonGroup, FormCheck } from "react-bootstrap";
|
||||||
import { getLoadedMonaco } from "../../../monaco-loader";
|
import { getLoadedMonaco } from "../../../monaco-loader";
|
||||||
import { IPlaygroundProject, IPreviewState } from "../../../shared";
|
|
||||||
import { Page } from "../../components/Page";
|
import { Page } from "../../components/Page";
|
||||||
import { Select } from "../../components/Select";
|
import { Select } from "../../components/Select";
|
||||||
|
import { Button, Col, Row, Stack } from "../../components/bootstrap";
|
||||||
import {
|
import {
|
||||||
MonacoEditor,
|
MonacoEditor,
|
||||||
MonacoEditorHeight,
|
MonacoEditorHeight,
|
||||||
} from "../../components/monaco/MonacoEditor";
|
} from "../../components/monaco/MonacoEditor";
|
||||||
import { withLoadedMonaco } from "../../components/monaco/MonacoLoader";
|
import { withLoadedMonaco } from "../../components/monaco/MonacoLoader";
|
||||||
|
import { monacoEditorVersion } from "../../monacoEditorVersion";
|
||||||
import { hotComponent } from "../../utils/hotComponent";
|
import { hotComponent } from "../../utils/hotComponent";
|
||||||
import { IReference, ref } from "../../utils/ref";
|
import { IReference, ref } from "../../utils/ref";
|
||||||
import { getNpmVersionsSync } from "./getNpmVersionsSync";
|
|
||||||
import { getPlaygroundExamples, PlaygroundExample } from "./playgroundExamples";
|
|
||||||
import { PlaygroundModel } from "./PlaygroundModel";
|
import { PlaygroundModel } from "./PlaygroundModel";
|
||||||
import { Preview } from "./Preview";
|
import { Preview } from "./Preview";
|
||||||
import { SettingsDialog } from "./SettingsDialog";
|
import { SettingsDialog } from "./SettingsDialog";
|
||||||
import { Button, Col, Row, Stack } from "../../components/bootstrap";
|
import { getNpmVersionsSync } from "./getNpmVersionsSync";
|
||||||
import { ButtonGroup, FormCheck } from "react-bootstrap";
|
import { PlaygroundExample, getPlaygroundExamples } from "./playgroundExamples";
|
||||||
|
|
||||||
@hotComponent(module)
|
@hotComponent(module)
|
||||||
@observer
|
@observer
|
||||||
|
|
@ -258,7 +258,9 @@ export class VersionSelector extends React.Component<{
|
||||||
<Select
|
<Select
|
||||||
values={versions}
|
values={versions}
|
||||||
getLabel={(i) =>
|
getLabel={(i) =>
|
||||||
`${i}${
|
i === latestValue
|
||||||
|
? `latest stable (${monacoEditorVersion})`
|
||||||
|
: `${i}${
|
||||||
{
|
{
|
||||||
["undefined"]: "",
|
["undefined"]: "",
|
||||||
["true"]: " ✓",
|
["true"]: " ✓",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue