Skip to content

Commit

Permalink
fix: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kingwl committed Jun 13, 2022
1 parent 0aa0a24 commit aacba06
Show file tree
Hide file tree
Showing 7 changed files with 130 additions and 143 deletions.
2 changes: 0 additions & 2 deletions src/monaco/Monaco.vue
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ onMounted(async () => {
});
editor.value = editorInstance
// const ls = await setupLs(editorInstance, documentModelMap)
await loadGrammars(editorInstance);
editorInstance.addCommand(monaco.KeyMod.CtrlCmd | monaco.KeyCode.KeyS, () => {
Expand Down
1 change: 0 additions & 1 deletion src/monaco/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export function setupMonacoEnv() {
(self as any).MonacoEnvironment = {
async getWorker(_: any, label: string) {
if (label === 'vue') {
console.log('label vue')
return new vueWorker();
}
return new editorWorker();
Expand Down
3 changes: 1 addition & 2 deletions src/monaco/monaco.contribution.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type * as mode from './vueMode';
import { Emitter, type IEvent, languages, Uri } from 'monaco-editor-core';
import { Emitter, type IEvent, languages } from 'monaco-editor-core';
import { debounce } from '../utils';

export interface ModeConfiguration {
Expand Down Expand Up @@ -63,7 +63,6 @@ class LanguageServiceDefaultsImpl implements LanguageServiceDefaults {

private fireExtraLibChangeSoon = debounce(() => {
this._onExtraLibChange.fire(this);
console.log('fire')
}, 300)
}

Expand Down
1 change: 0 additions & 1 deletion src/monaco/services.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { worker } from 'monaco-editor-core';
// import { prepareServiceVirtualFiles } from './prepare';
import * as ts from 'typescript/lib/tsserverlibrary';
import {
createLanguageService,
Expand Down

0 comments on commit aacba06

Please sign in to comment.