Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 2, 2024
1 parent f0b93e4 commit 0ab4582
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 16 deletions.
6 changes: 3 additions & 3 deletions monaco/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,19 +136,19 @@ export async function reloadLanguageTools(ctx: PlaygroundMonacoContext) {
languageId,
'vue',
getSyncUris,
editor,
editor as typeof import('monaco-editor').editor,
)
const { dispose: disposeAutoInsertion } = volar.activateAutoInsertion(
worker,
languageId,
getSyncUris,
editor,
editor as typeof import('monaco-editor').editor,
)
const { dispose: disposeProvides } = await volar.registerProviders(
worker,
languageId,
getSyncUris,
languages,
languages as unknown as typeof import('monaco-editor').languages,
)

disposeVue = () => {
Expand Down
1 change: 0 additions & 1 deletion monaco/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import vueWorker from './vue.worker?worker'
import { reloadLanguageTools } from './env'

export function initMonaco(ctx: PlaygroundStore) {
// @ts-expect-error MonacoEnvironment is a global variable injected for monaco
self.MonacoEnvironment = {
async getWorker(_: any, label: string) {
switch (label) {
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"strip-json-comments": "^5.0.1",
"theme-vitesse": "^0.8.0",
"unified": "^11.0.4",
"vscode-uri": "^3.0.8",
"vue": "^3.4.27",
"vue-router": "^4.3.2"
},
Expand All @@ -56,13 +57,13 @@
"execa": "^9.1.0",
"fast-glob": "^3.3.2",
"fuse.js": "^7.0.0",
"monaco-editor-core": "^0.48.0",
"monaco-editor-core": "^0.50.0",
"nuxt": "^3.11.2",
"nuxt-icon": "^0.6.10",
"pathe": "^1.1.2",
"remark-external-links": "^9.0.1",
"typescript": "^5.4.5",
"vue-tsc": "^2.0.26-alpah.2"
"vue-tsc": "^2.0.26-alpha.2"
},
"pnpm": {
"patchedDependencies": {
Expand Down
23 changes: 13 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0ab4582

Please sign in to comment.