Skip to content

Commit 9206694

Browse files
vladajankoviclukasbach
authored andcommitted
Update app demo
1 parent 4df68a6 commit 9206694

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/demo/src/index.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
2-
import { AutoTypings, LocalStorageCache } from 'monaco-editor-auto-typings';
2+
import { AutoTypings, JsDelivrSourceResolver, LocalStorageCache, UnpkgSourceResolver } from 'monaco-editor-auto-typings';
33
import { editorContents } from './editorContents';
44

55
import './style.css';
@@ -14,6 +14,8 @@ AutoTypings.create(editor, {
1414
// Cache declaration files to local storage
1515
sourceCache: cache,
1616

17+
sourceResolver: new JsDelivrSourceResolver(),
18+
1719
// Log progress updates to a div console
1820
onUpdate: (u, t) => {
1921
const mountPoint = document.getElementById('logs-mountpoint')!;

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -4247,10 +4247,10 @@ modify-values@^1.0.1:
42474247
resolved "file:packages/demo"
42484248
dependencies:
42494249
monaco-editor "^0.34.0"
4250-
monaco-editor-auto-typings "^0.5.0"
4250+
monaco-editor-auto-typings "^0.4.5"
42514251

4252-
monaco-editor-auto-typings@^0.5.0, "monaco-editor-auto-typings@file:D:\\GitHub\\monaco-editor-auto-typings\\packages\\core":
4253-
version "0.5.0"
4252+
monaco-editor-auto-typings@^0.4.5, "monaco-editor-auto-typings@file:D:\\GitHub\\monaco-editor-auto-typings\\packages\\core":
4253+
version "0.4.5"
42544254
resolved "file:packages/core"
42554255

42564256
monaco-editor-webpack-plugin@^7.0.1:

0 commit comments

Comments
 (0)