@@ -14,6 +14,7 @@ import { compile } from 'vs/editor/standalone/common/monarch/monarchCompile';
14
14
import { MonarchTokenizer } from 'vs/editor/standalone/common/monarch/monarchLexer' ;
15
15
import { IMonarchLanguage } from 'vs/editor/standalone/common/monarch/monarchTypes' ;
16
16
import { IConfigurationService } from 'vs/platform/configuration/common/configuration' ;
17
+ import { NullLogService } from 'vs/platform/log/common/log' ;
17
18
18
19
suite ( 'Monarch' , ( ) => {
19
20
@@ -37,7 +38,7 @@ suite('Monarch', () => {
37
38
test ( 'Ensure @rematch and nextEmbedded can be used together in Monarch grammar' , ( ) => {
38
39
const disposables = new DisposableStore ( ) ;
39
40
const languageService = disposables . add ( new LanguageService ( ) ) ;
40
- const configurationService = new StandaloneConfigurationService ( ) ;
41
+ const configurationService = new StandaloneConfigurationService ( new NullLogService ( ) ) ;
41
42
disposables . add ( languageService . registerLanguage ( { id : 'sql' } ) ) ;
42
43
disposables . add ( TokenizationRegistry . register ( 'sql' , disposables . add ( createMonarchTokenizer ( languageService , 'sql' , {
43
44
tokenizer : {
@@ -113,7 +114,7 @@ suite('Monarch', () => {
113
114
114
115
test ( 'microsoft/monaco-editor#1235: Empty Line Handling' , ( ) => {
115
116
const disposables = new DisposableStore ( ) ;
116
- const configurationService = new StandaloneConfigurationService ( ) ;
117
+ const configurationService = new StandaloneConfigurationService ( new NullLogService ( ) ) ;
117
118
const languageService = disposables . add ( new LanguageService ( ) ) ;
118
119
const tokenizer = disposables . add ( createMonarchTokenizer ( languageService , 'test' , {
119
120
tokenizer : {
@@ -172,7 +173,7 @@ suite('Monarch', () => {
172
173
173
174
test ( 'microsoft/monaco-editor#2265: Exit a state at end of line' , ( ) => {
174
175
const disposables = new DisposableStore ( ) ;
175
- const configurationService = new StandaloneConfigurationService ( ) ;
176
+ const configurationService = new StandaloneConfigurationService ( new NullLogService ( ) ) ;
176
177
const languageService = disposables . add ( new LanguageService ( ) ) ;
177
178
const tokenizer = disposables . add ( createMonarchTokenizer ( languageService , 'test' , {
178
179
includeLF : true ,
@@ -223,7 +224,7 @@ suite('Monarch', () => {
223
224
224
225
test ( 'issue #115662: monarchCompile function need an extra option which can control replacement' , ( ) => {
225
226
const disposables = new DisposableStore ( ) ;
226
- const configurationService = new StandaloneConfigurationService ( ) ;
227
+ const configurationService = new StandaloneConfigurationService ( new NullLogService ( ) ) ;
227
228
const languageService = disposables . add ( new LanguageService ( ) ) ;
228
229
229
230
const tokenizer1 = disposables . add ( createMonarchTokenizer ( languageService , 'test' , {
@@ -280,7 +281,7 @@ suite('Monarch', () => {
280
281
281
282
test ( 'microsoft/monaco-editor#2424: Allow to target @@' , ( ) => {
282
283
const disposables = new DisposableStore ( ) ;
283
- const configurationService = new StandaloneConfigurationService ( ) ;
284
+ const configurationService = new StandaloneConfigurationService ( new NullLogService ( ) ) ;
284
285
const languageService = disposables . add ( new LanguageService ( ) ) ;
285
286
286
287
const tokenizer = disposables . add ( createMonarchTokenizer ( languageService , 'test' , {
@@ -312,7 +313,7 @@ suite('Monarch', () => {
312
313
test ( 'microsoft/monaco-editor#3025: Check maxTokenizationLineLength before tokenizing' , async ( ) => {
313
314
const disposables = new DisposableStore ( ) ;
314
315
315
- const configurationService = new StandaloneConfigurationService ( ) ;
316
+ const configurationService = new StandaloneConfigurationService ( new NullLogService ( ) ) ;
316
317
const languageService = disposables . add ( new LanguageService ( ) ) ;
317
318
318
319
// Set maxTokenizationLineLength to 4 so that "ham" works but "hamham" would fail
@@ -348,7 +349,7 @@ suite('Monarch', () => {
348
349
349
350
test ( 'microsoft/monaco-editor#3128: allow state access within rules' , ( ) => {
350
351
const disposables = new DisposableStore ( ) ;
351
- const configurationService = new StandaloneConfigurationService ( ) ;
352
+ const configurationService = new StandaloneConfigurationService ( new NullLogService ( ) ) ;
352
353
const languageService = disposables . add ( new LanguageService ( ) ) ;
353
354
354
355
const tokenizer = disposables . add ( createMonarchTokenizer ( languageService , 'test' , {
0 commit comments