Skip to content

Commit a597d2c

Browse files
authored
Merge pull request #4977 from microsoft/hediet/b/biological-antelope
update samples
2 parents 4e45ba0 + b19105b commit a597d2c

File tree

24 files changed

+296
-3507
lines changed

24 files changed

+296
-3507
lines changed

samples/browser-script-editor/index.html

Lines changed: 0 additions & 28 deletions
This file was deleted.

samples/legacy/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
These AMD samples are not supported anymore and will be removed in future releases.
2+
Please use the ESM version of the editor!

samples/browser-amd-diff-editor/index.html renamed to samples/legacy/browser-amd-diff-editor/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<h2>Monaco Diff Editor Sample</h2>
88
<div id="container" style="width: 800px; height: 600px; border: 1px solid grey"></div>
99

10-
<script src="../node_modules/monaco-editor/min/vs/loader.js"></script>
10+
<script src="../../node_modules/monaco-editor/min/vs/loader.js"></script>
1111
<script>
12-
require.config({ paths: { vs: '../node_modules/monaco-editor/min/vs' } });
12+
require.config({ paths: { vs: '../../node_modules/monaco-editor/min/vs' } });
1313

1414
require(['vs/editor/editor.main'], function () {
1515
var diffEditor = monaco.editor.createDiffEditor(document.getElementById('container'));
File renamed without changes.
File renamed without changes.

samples/browser-amd-editor/index.html renamed to samples/legacy/browser-amd-editor/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ <h2>Monaco Editor Sample</h2>
99
<div id="container" style="width: 800px; height: 600px; border: 1px solid grey"></div>
1010

1111
<!-- OR ANY OTHER AMD LOADER HERE INSTEAD OF loader.js -->
12-
<script src="../node_modules/monaco-editor/min/vs/loader.js"></script>
12+
<script src="../../node_modules/monaco-editor/min/vs/loader.js"></script>
1313
<script>
14-
require.config({ paths: { vs: '../node_modules/monaco-editor/min/vs' } });
14+
require.config({ paths: { vs: '../../node_modules/monaco-editor/min/vs' } });
1515

1616
require(['vs/editor/editor.main'], function () {
1717
var editor = monaco.editor.create(document.getElementById('container'), {
File renamed without changes.

samples/browser-amd-iframe/inner.html renamed to samples/legacy/browser-amd-iframe/inner.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</head>
1616
<body>
1717
<div id="container" style="width: 100%; height: 100%"></div>
18-
<script src="../node_modules/monaco-editor/min/vs/loader.js"></script>
18+
<script src="../../node_modules/monaco-editor/min/vs/loader.js"></script>
1919
<script>
2020
require.config({ paths: { vs: '../node_modules/monaco-editor/min/vs' } });
2121

samples/browser-amd-localized/index.html renamed to samples/legacy/browser-amd-localized/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<h2>Monaco Editor Localization Sample</h2>
88
<div id="container" style="width: 800px; height: 600px; border: 1px solid grey"></div>
99

10-
<script src="../node_modules/monaco-editor/min/vs/loader.js"></script>
10+
<script src="../../node_modules/monaco-editor/min/vs/loader.js"></script>
1111
<script>
12-
require.config({ paths: { vs: '../node_modules/monaco-editor/min/vs' } });
12+
require.config({ paths: { vs: '../../node_modules/monaco-editor/min/vs' } });
1313

1414
require.config({
1515
'vs/nls': {

samples/browser-amd-monarch/index.html renamed to samples/legacy/browser-amd-monarch/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<h2>Monarch Tokenizer Sample</h2>
88
<div id="container" style="width: 800px; height: 600px; border: 1px solid grey"></div>
99

10-
<script src="../node_modules/monaco-editor/min/vs/loader.js"></script>
10+
<script src="../../node_modules/monaco-editor/min/vs/loader.js"></script>
1111
<script>
12-
require.config({ paths: { vs: '../node_modules/monaco-editor/min/vs' } });
12+
require.config({ paths: { vs: '../../node_modules/monaco-editor/min/vs' } });
1313

1414
require(['vs/editor/editor.main'], function () {
1515
monaco.languages.register({

0 commit comments

Comments
 (0)