Skip to content

Commit 28cb2b7

Browse files
author
guqiankun.gqk
committed
fix: 修复编译报错
1 parent 1d9f464 commit 28cb2b7

2 files changed

Lines changed: 4 additions & 9 deletions

File tree

packages/core/src/client/textmate-language-grammar/language-grammar.service.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import { Disposable, URI, Domain } from '@opensumi/ide-core-common';
33
import { LanguagesContribution, GrammarsContribution } from '@opensumi/ide-monaco';
44
import { Registry } from '@alipay/alex-registry';
55
import { TextmateKey } from './base';
6-
import {
7-
ITextmateTokenizer,
8-
ITextmateTokenizerService,
9-
} from '@opensumi/ide-monaco/lib/browser/contrib/tokenizer';
6+
import { ITextmateTokenizer } from '@opensumi/ide-monaco/lib/browser/contrib/tokenizer';
7+
import type { ITextmateTokenizerService } from '@opensumi/ide-monaco/lib/browser/contrib/tokenizer';
108

119
@Domain()
1210
export class LanguageGrammarRegistrationService extends Disposable {

packages/plugin/src/api/plugin.commands.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ import {
66
Disposable,
77
IDisposable,
88
} from '@opensumi/ide-core-common';
9-
import {
10-
ICommandServiceToken,
11-
IMonacoCommandService,
12-
} from '@opensumi/ide-monaco/lib/browser/contrib/command';
13-
9+
import { ICommandServiceToken } from '@opensumi/ide-monaco/lib/browser/contrib/command';
10+
import type { IMonacoCommandService } from '@opensumi/ide-monaco/lib/browser/contrib/command';
1411
type Handler<T = any> = (...args: any[]) => T | Promise<T>;
1512

1613
interface CommandHandler<T> {

0 commit comments

Comments
 (0)