@codingame/monaco-vscode-output-service-override 25.1.1 → 26.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -13,8 +13,12 @@ import { FileAccess } from '@codingame/monaco-vscode-api/vscode/vs/base/common/n
13
13
 
14
14
  var OutputLinkProvider_1;
15
15
  let OutputLinkProvider = class OutputLinkProvider extends Disposable {
16
- static { OutputLinkProvider_1 = this; }
17
- static { this.DISPOSE_WORKER_TIME = 3 * 60 * 1000; }
16
+ static {
17
+ OutputLinkProvider_1 = this;
18
+ }
19
+ static {
20
+ this.DISPOSE_WORKER_TIME = 3 * 60 * 1000;
21
+ }
18
22
  constructor(contextService, modelService, languageFeaturesService, webWorkerService) {
19
23
  super();
20
24
  this.contextService = contextService;
@@ -26,21 +30,30 @@ let OutputLinkProvider = class OutputLinkProvider extends Disposable {
26
30
  this.updateLinkProviderWorker();
27
31
  }
28
32
  registerListeners() {
29
- this._register(this.contextService.onDidChangeWorkspaceFolders(() => this.updateLinkProviderWorker()));
33
+ this._register(
34
+ this.contextService.onDidChangeWorkspaceFolders(() => this.updateLinkProviderWorker())
35
+ );
30
36
  }
31
37
  updateLinkProviderWorker() {
32
38
  const folders = this.contextService.getWorkspace().folders;
33
39
  if (folders.length > 0) {
34
40
  if (!this.linkProviderRegistration) {
35
- this.linkProviderRegistration = this.languageFeaturesService.linkProvider.register([{ language: OUTPUT_MODE_ID, scheme: '*' }, { language: LOG_MODE_ID, scheme: '*' }], {
36
- provideLinks: async (model) => {
41
+ this.linkProviderRegistration = this.languageFeaturesService.linkProvider.register([{
42
+ language: OUTPUT_MODE_ID,
43
+ scheme: "*"
44
+ }, {
45
+ language: LOG_MODE_ID,
46
+ scheme: "*"
47
+ }], {
48
+ provideLinks: async model => {
37
49
  const links = await this.provideLinks(model.uri);
38
- return links && { links };
50
+ return links && {
51
+ links
52
+ };
39
53
  }
40
54
  });
41
55
  }
42
- }
43
- else {
56
+ } else {
44
57
  dispose(this.linkProviderRegistration);
45
58
  this.linkProviderRegistration = undefined;
46
59
  }
@@ -64,19 +77,14 @@ let OutputLinkProvider = class OutputLinkProvider extends Disposable {
64
77
  }
65
78
  }
66
79
  };
67
- OutputLinkProvider = OutputLinkProvider_1 = ( __decorate([
68
- ( __param(0, IWorkspaceContextService)),
69
- ( __param(1, IModelService)),
70
- ( __param(2, ILanguageFeaturesService)),
71
- ( __param(3, IWebWorkerService))
72
- ], OutputLinkProvider));
80
+ OutputLinkProvider = OutputLinkProvider_1 = ( __decorate([( __param(0, IWorkspaceContextService)), ( __param(1, IModelService)), ( __param(2, ILanguageFeaturesService)), ( __param(3, IWebWorkerService))], OutputLinkProvider));
73
81
  let OutputLinkWorkerClient = class OutputLinkWorkerClient extends Disposable {
74
82
  constructor(contextService, modelService, webWorkerService) {
75
83
  super();
76
84
  this.contextService = contextService;
77
85
  this._workerClient = this._register(webWorkerService.createWorkerClient(( new WebWorkerDescriptor({
78
- esmModuleLocation: ( FileAccess.asBrowserUri('vs/workbench/contrib/output/common/outputLinkComputerMain.js')),
79
- label: 'OutputLinkDetectionWorker'
86
+ esmModuleLocation: ( FileAccess.asBrowserUri("vs/workbench/contrib/output/common/outputLinkComputerMain.js")),
87
+ label: "OutputLinkDetectionWorker"
80
88
  }))));
81
89
  this._workerTextModelSyncClient = this._register(WorkerTextModelSyncClient.create(this._workerClient, modelService));
82
90
  this._initializeBarrier = this._ensureWorkspaceFolders();
@@ -90,10 +98,6 @@ let OutputLinkWorkerClient = class OutputLinkWorkerClient extends Disposable {
90
98
  return this._workerClient.proxy.$computeLinks(( modelUri.toString()));
91
99
  }
92
100
  };
93
- OutputLinkWorkerClient = ( __decorate([
94
- ( __param(0, IWorkspaceContextService)),
95
- ( __param(1, IModelService)),
96
- ( __param(2, IWebWorkerService))
97
- ], OutputLinkWorkerClient));
101
+ OutputLinkWorkerClient = ( __decorate([( __param(0, IWorkspaceContextService)), ( __param(1, IModelService)), ( __param(2, IWebWorkerService))], OutputLinkWorkerClient));
98
102
 
99
103
  export { OutputLinkProvider };
@@ -28,9 +28,15 @@ import { toLocalISOString } from '@codingame/monaco-vscode-api/vscode/vs/base/co
28
28
  import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
29
29
  import { IDefaultLogLevelsService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/log/common/defaultLogLevels.service';
30
30
 
31
- const OUTPUT_ACTIVE_CHANNEL_KEY = 'output.activechannel';
31
+ const OUTPUT_ACTIVE_CHANNEL_KEY = "output.activechannel";
32
32
  let OutputChannel = class OutputChannel extends Disposable {
33
- constructor(outputChannelDescriptor, outputLocation, outputDirPromise, languageService, instantiationService) {
33
+ constructor(
34
+ outputChannelDescriptor,
35
+ outputLocation,
36
+ outputDirPromise,
37
+ languageService,
38
+ instantiationService
39
+ ) {
34
40
  super();
35
41
  this.outputChannelDescriptor = outputChannelDescriptor;
36
42
  this.outputLocation = outputLocation;
@@ -40,18 +46,33 @@ let OutputChannel = class OutputChannel extends Disposable {
40
46
  this.scrollLock = false;
41
47
  this.id = outputChannelDescriptor.id;
42
48
  this.label = outputChannelDescriptor.label;
43
- this.uri = ( URI.from({ scheme: Schemas.outputChannel, path: this.id }));
49
+ this.uri = ( URI.from({
50
+ scheme: Schemas.outputChannel,
51
+ path: this.id
52
+ }));
44
53
  this.model = this._register(this.createOutputChannelModel(this.uri, outputChannelDescriptor));
45
54
  }
46
55
  createOutputChannelModel(uri, outputChannelDescriptor) {
47
56
  const language = outputChannelDescriptor.languageId ? this.languageService.createById(outputChannelDescriptor.languageId) : this.languageService.createByMimeType(outputChannelDescriptor.log ? LOG_MIME : OUTPUT_MIME);
48
57
  if (isMultiSourceOutputChannelDescriptor(outputChannelDescriptor)) {
49
- return this.instantiationService.createInstance(MultiFileOutputChannelModel, uri, language, [...outputChannelDescriptor.source]);
58
+ return this.instantiationService.createInstance(
59
+ MultiFileOutputChannelModel,
60
+ uri,
61
+ language,
62
+ [...outputChannelDescriptor.source]
63
+ );
50
64
  }
51
65
  if (isSingleSourceOutputChannelDescriptor(outputChannelDescriptor)) {
52
66
  return this.instantiationService.createInstance(FileOutputChannelModel, uri, language, outputChannelDescriptor.source);
53
67
  }
54
- return this.instantiationService.createInstance(DelegatedOutputChannelModel, this.id, uri, language, this.outputLocation, this.outputDirPromise);
68
+ return this.instantiationService.createInstance(
69
+ DelegatedOutputChannelModel,
70
+ this.id,
71
+ uri,
72
+ language,
73
+ this.outputLocation,
74
+ this.outputDirPromise
75
+ );
55
76
  }
56
77
  getLogEntries() {
57
78
  return this.model.getLogEntries();
@@ -69,17 +90,14 @@ let OutputChannel = class OutputChannel extends Disposable {
69
90
  this.model.replace(value);
70
91
  }
71
92
  };
72
- OutputChannel = ( __decorate([
73
- ( __param(3, ILanguageService)),
74
- ( __param(4, IInstantiationService))
75
- ], OutputChannel));
93
+ OutputChannel = ( __decorate([( __param(3, ILanguageService)), ( __param(4, IInstantiationService))], OutputChannel));
76
94
  class OutputViewFilters extends Disposable {
77
95
  constructor(options, contextKeyService) {
78
96
  super();
79
97
  this.contextKeyService = contextKeyService;
80
98
  this._onDidChange = this._register(( new Emitter()));
81
99
  this.onDidChange = this._onDidChange.event;
82
- this._filterText = '';
100
+ this._filterText = "";
83
101
  this._includePatterns = [];
84
102
  this._excludePatterns = [];
85
103
  this._trace = SHOW_TRACE_FILTER_CONTEXT.bindTo(this.contextKeyService);
@@ -102,7 +120,10 @@ class OutputViewFilters extends Disposable {
102
120
  set text(filterText) {
103
121
  if (this._filterText !== filterText) {
104
122
  this._filterText = filterText;
105
- const { includePatterns, excludePatterns } = this.parseText(filterText);
123
+ const {
124
+ includePatterns,
125
+ excludePatterns
126
+ } = this.parseText(filterText);
106
127
  this._includePatterns = includePatterns;
107
128
  this._excludePatterns = excludePatterns;
108
129
  this._onDidChange.fire();
@@ -117,17 +138,19 @@ class OutputViewFilters extends Disposable {
117
138
  if (trimmed.length === 0) {
118
139
  continue;
119
140
  }
120
- if (trimmed.startsWith('!')) {
141
+ if (trimmed.startsWith("!")) {
121
142
  const negativePattern = trimmed.substring(1).trim();
122
143
  if (negativePattern.length > 0) {
123
144
  excludePatterns.push(negativePattern);
124
145
  }
125
- }
126
- else {
146
+ } else {
127
147
  includePatterns.push(trimmed);
128
148
  }
129
149
  }
130
- return { includePatterns, excludePatterns };
150
+ return {
151
+ includePatterns,
152
+ excludePatterns
153
+ };
131
154
  }
132
155
  get includePatterns() {
133
156
  return this._includePatterns;
@@ -137,27 +160,24 @@ class OutputViewFilters extends Disposable {
137
160
  }
138
161
  splitByCommaRespectingQuotes(text) {
139
162
  const patterns = [];
140
- let current = '';
163
+ let current = "";
141
164
  let inQuotes = false;
142
- let quoteChar = '';
165
+ let quoteChar = "";
143
166
  for (let i = 0; i < text.length; i++) {
144
167
  const char = text[i];
145
- if (!inQuotes && (char === '"')) {
168
+ if (!inQuotes && (char === "\"")) {
146
169
  inQuotes = true;
147
170
  quoteChar = char;
148
171
  current += char;
149
- }
150
- else if (inQuotes && char === quoteChar) {
172
+ } else if (inQuotes && char === quoteChar) {
151
173
  inQuotes = false;
152
174
  current += char;
153
- }
154
- else if (!inQuotes && char === ',') {
175
+ } else if (!inQuotes && char === ",") {
155
176
  if (current.length > 0) {
156
177
  patterns.push(current);
157
178
  }
158
- current = '';
159
- }
160
- else {
179
+ current = "";
180
+ } else {
161
181
  current += char;
162
182
  }
163
183
  }
@@ -212,7 +232,7 @@ class OutputViewFilters extends Disposable {
212
232
  }
213
233
  }
214
234
  get categories() {
215
- return this._categories.get() || ',';
235
+ return this._categories.get() || ",";
216
236
  }
217
237
  set categories(categories) {
218
238
  this._categories.set(categories);
@@ -221,21 +241,33 @@ class OutputViewFilters extends Disposable {
221
241
  toggleCategory(category) {
222
242
  const categories = this.categories;
223
243
  if (this.hasCategory(category)) {
224
- this.categories = categories.replace(`,${category},`, ',');
225
- }
226
- else {
244
+ this.categories = categories.replace(`,${category},`, ",");
245
+ } else {
227
246
  this.categories = `${categories}${category},`;
228
247
  }
229
248
  }
230
249
  hasCategory(category) {
231
- if (category === ',') {
250
+ if (category === ",") {
232
251
  return false;
233
252
  }
234
253
  return this.categories.includes(`,${category},`);
235
254
  }
236
255
  }
237
256
  let OutputService = class OutputService extends Disposable {
238
- constructor(storageService, instantiationService, textModelService, logService, loggerService, lifecycleService, viewsService, contextKeyService, defaultLogLevelsService, fileDialogService, fileService, environmentService) {
257
+ constructor(
258
+ storageService,
259
+ instantiationService,
260
+ textModelService,
261
+ logService,
262
+ loggerService,
263
+ lifecycleService,
264
+ viewsService,
265
+ contextKeyService,
266
+ defaultLogLevelsService,
267
+ fileDialogService,
268
+ fileService,
269
+ environmentService
270
+ ) {
239
271
  super();
240
272
  this.storageService = storageService;
241
273
  this.instantiationService = instantiationService;
@@ -251,30 +283,44 @@ let OutputService = class OutputService extends Disposable {
251
283
  this._onActiveOutputChannel = this._register(( new Emitter()));
252
284
  this.onActiveOutputChannel = this._onActiveOutputChannel.event;
253
285
  this.outputFolderCreationPromise = null;
254
- this.activeChannelIdInStorage = this.storageService.get(OUTPUT_ACTIVE_CHANNEL_KEY, StorageScope.WORKSPACE, '');
286
+ this.activeChannelIdInStorage = this.storageService.get(OUTPUT_ACTIVE_CHANNEL_KEY, StorageScope.WORKSPACE, "");
255
287
  this.activeOutputChannelContext = ACTIVE_OUTPUT_CHANNEL_CONTEXT.bindTo(contextKeyService);
256
288
  this.activeOutputChannelContext.set(this.activeChannelIdInStorage);
257
- this._register(this.onActiveOutputChannel(channel => this.activeOutputChannelContext.set(channel)));
289
+ this._register(
290
+ this.onActiveOutputChannel(channel => this.activeOutputChannelContext.set(channel))
291
+ );
258
292
  this.activeFileOutputChannelContext = CONTEXT_ACTIVE_FILE_OUTPUT.bindTo(contextKeyService);
259
293
  this.activeLogOutputChannelContext = CONTEXT_ACTIVE_LOG_FILE_OUTPUT.bindTo(contextKeyService);
260
294
  this.activeOutputChannelLevelSettableContext = CONTEXT_ACTIVE_OUTPUT_LEVEL_SETTABLE.bindTo(contextKeyService);
261
295
  this.activeOutputChannelLevelContext = CONTEXT_ACTIVE_OUTPUT_LEVEL.bindTo(contextKeyService);
262
296
  this.activeOutputChannelLevelIsDefaultContext = CONTEXT_ACTIVE_OUTPUT_LEVEL_IS_DEFAULT.bindTo(contextKeyService);
263
- this.outputLocation = joinPath(environmentService.windowLogsPath, `output_${toLocalISOString(( new Date())).replace(/-|:|\.\d+Z$/g, '')}`);
264
- this._register(textModelService.registerTextModelContentProvider(Schemas.outputChannel, this));
297
+ this.outputLocation = joinPath(
298
+ environmentService.windowLogsPath,
299
+ `output_${toLocalISOString(( new Date())).replace(/-|:|\.\d+Z$/g, "")}`
300
+ );
301
+ this._register(
302
+ textModelService.registerTextModelContentProvider(Schemas.outputChannel, this)
303
+ );
265
304
  this._register(instantiationService.createInstance(OutputLinkProvider));
266
305
  const registry = ( Registry.as(Extensions.OutputChannels));
267
306
  for (const channelIdentifier of registry.getChannels()) {
268
307
  this.onDidRegisterChannel(channelIdentifier.id);
269
308
  }
270
309
  this._register(registry.onDidRegisterChannel(id => this.onDidRegisterChannel(id)));
271
- this._register(registry.onDidUpdateChannelSources(channel => this.onDidUpdateChannelSources(channel)));
310
+ this._register(
311
+ registry.onDidUpdateChannelSources(channel => this.onDidUpdateChannelSources(channel))
312
+ );
272
313
  this._register(registry.onDidRemoveChannel(channel => this.onDidRemoveChannel(channel)));
273
314
  if (!this.activeChannel) {
274
315
  const channels = this.getChannelDescriptors();
275
- this.setActiveChannel(channels && channels.length > 0 ? this.getChannel(channels[0].id) : undefined);
276
- }
277
- this._register(Event.filter(this.viewsService.onDidChangeViewVisibility, e => e.id === OUTPUT_VIEW_ID && e.visible)(() => {
316
+ this.setActiveChannel(
317
+ channels && channels.length > 0 ? this.getChannel(channels[0].id) : undefined
318
+ );
319
+ }
320
+ this._register(Event.filter(
321
+ this.viewsService.onDidChangeViewVisibility,
322
+ e => e.id === OUTPUT_VIEW_ID && e.visible
323
+ )(() => {
278
324
  if (this.activeChannel) {
279
325
  this.viewsService.getActiveViewWithId(OUTPUT_VIEW_ID)?.showChannel(this.activeChannel, true);
280
326
  }
@@ -294,7 +340,7 @@ let OutputService = class OutputService extends Disposable {
294
340
  info: true,
295
341
  warning: true,
296
342
  error: true,
297
- sources: '',
343
+ sources: ""
298
344
  }, contextKeyService)));
299
345
  }
300
346
  provideTextContent(resource) {
@@ -339,7 +385,10 @@ let OutputService = class OutputService extends Disposable {
339
385
  return undefined;
340
386
  }
341
387
  const logLevel = this.loggerService.getLogLevel();
342
- return sources.reduce((prev, curr) => Math.min(prev, this.loggerService.getLogLevel(curr.resource) ?? logLevel), LogLevel.Error);
388
+ return sources.reduce(
389
+ (prev, curr) => Math.min(prev, this.loggerService.getLogLevel(curr.resource) ?? logLevel),
390
+ LogLevel.Error
391
+ );
343
392
  }
344
393
  setLogLevel(channel, logLevel) {
345
394
  if (!channel.log) {
@@ -356,16 +405,19 @@ let OutputService = class OutputService extends Disposable {
356
405
  registerCompoundLogChannel(descriptors) {
357
406
  const outputChannelRegistry = ( Registry.as(Extensions.OutputChannels));
358
407
  descriptors.sort((a, b) => a.label.localeCompare(b.label));
359
- const id = ( descriptors.map(r => r.id.toLowerCase())).join('-');
408
+ const id = ( descriptors.map(r => r.id.toLowerCase())).join("-");
360
409
  if (!outputChannelRegistry.getChannel(id)) {
361
410
  outputChannelRegistry.registerChannel({
362
411
  id,
363
- label: ( descriptors.map(r => r.label)).join(', '),
412
+ label: ( descriptors.map(r => r.label)).join(", "),
364
413
  log: ( descriptors.some(r => r.log)),
365
414
  user: true,
366
415
  source: ( descriptors.map(descriptor => {
367
416
  if (isSingleSourceOutputChannelDescriptor(descriptor)) {
368
- return [{ resource: descriptor.source.resource, name: descriptor.source.name ?? descriptor.label }];
417
+ return [{
418
+ resource: descriptor.source.resource,
419
+ name: descriptor.source.name ?? descriptor.label
420
+ }];
369
421
  }
370
422
  if (isMultiSourceOutputChannelDescriptor(descriptor)) {
371
423
  return descriptor.source;
@@ -375,7 +427,7 @@ let OutputService = class OutputService extends Disposable {
375
427
  return channel.model.source;
376
428
  }
377
429
  return [];
378
- })).flat(),
430
+ })).flat()
379
431
  });
380
432
  }
381
433
  return id;
@@ -385,8 +437,7 @@ let OutputService = class OutputService extends Disposable {
385
437
  if (channels.length > 1) {
386
438
  const compoundChannelId = this.registerCompoundLogChannel(channels);
387
439
  channel = this.getChannel(compoundChannelId);
388
- }
389
- else {
440
+ } else {
390
441
  channel = this.getChannel(channels[0].id);
391
442
  }
392
443
  if (!channel) {
@@ -395,15 +446,15 @@ let OutputService = class OutputService extends Disposable {
395
446
  try {
396
447
  let uri = outputPath;
397
448
  if (!uri) {
398
- const name = channels.length > 1 ? 'output' : channels[0].label;
449
+ const name = channels.length > 1 ? "output" : channels[0].label;
399
450
  uri = await this.fileDialogService.showSaveDialog({
400
- title: ( localize(9823, "Save Output As")),
451
+ title: ( localize(10143, "Save Output As")),
401
452
  availableFileSystems: [Schemas.file],
402
453
  defaultUri: joinPath(await this.fileDialogService.defaultFilePath(), `${name}.log`),
403
454
  filters: [{
404
- name,
405
- extensions: ['log']
406
- }]
455
+ name,
456
+ extensions: ["log"]
457
+ }]
407
458
  });
408
459
  }
409
460
  if (!uri) {
@@ -412,13 +463,11 @@ let OutputService = class OutputService extends Disposable {
412
463
  const modelRef = await this.textModelService.createModelReference(channel.uri);
413
464
  try {
414
465
  await this.fileService.writeFile(uri, VSBuffer.fromString(modelRef.object.textEditorModel.getValue()));
415
- }
416
- finally {
466
+ } finally {
417
467
  modelRef.dispose();
418
468
  }
419
469
  return;
420
- }
421
- finally {
470
+ } finally {
422
471
  if (channels.length > 1) {
423
472
  ( Registry.as(Extensions.OutputChannels)).removeChannel(channel.id);
424
473
  }
@@ -457,8 +506,7 @@ let OutputService = class OutputService extends Disposable {
457
506
  const channel = channels.length ? this.getChannel(channels[0].id) : undefined;
458
507
  if (channel && this.viewsService.isViewVisible(OUTPUT_VIEW_ID)) {
459
508
  this.showChannel(channel.id);
460
- }
461
- else {
509
+ } else {
462
510
  this.setActiveChannel(undefined);
463
511
  }
464
512
  }
@@ -475,12 +523,17 @@ let OutputService = class OutputService extends Disposable {
475
523
  if (!this.outputFolderCreationPromise) {
476
524
  this.outputFolderCreationPromise = this.fileService.createFolder(this.outputLocation).then(() => undefined);
477
525
  }
478
- return this.instantiationService.createInstance(OutputChannel, channelData, this.outputLocation, this.outputFolderCreationPromise);
526
+ return this.instantiationService.createInstance(
527
+ OutputChannel,
528
+ channelData,
529
+ this.outputLocation,
530
+ this.outputFolderCreationPromise
531
+ );
479
532
  }
480
533
  setLevelContext() {
481
534
  const descriptor = this.activeChannel?.outputChannelDescriptor;
482
535
  const channelLogLevel = descriptor ? this.getLogLevel(descriptor) : undefined;
483
- this.activeOutputChannelLevelContext.set(channelLogLevel !== undefined ? LogLevelToString(channelLogLevel) : '');
536
+ this.activeOutputChannelLevelContext.set(channelLogLevel !== undefined ? LogLevelToString(channelLogLevel) : "");
484
537
  }
485
538
  async setLevelIsDefaultContext() {
486
539
  const descriptor = this.activeChannel?.outputChannelDescriptor;
@@ -488,8 +541,7 @@ let OutputService = class OutputService extends Disposable {
488
541
  if (channelLogLevel !== undefined) {
489
542
  const channelDefaultLogLevel = this.defaultLogLevelsService.getDefaultLogLevel(descriptor?.extensionId);
490
543
  this.activeOutputChannelLevelIsDefaultContext.set(channelDefaultLogLevel === channelLogLevel);
491
- }
492
- else {
544
+ } else {
493
545
  this.activeOutputChannelLevelIsDefaultContext.set(false);
494
546
  }
495
547
  }
@@ -502,26 +554,17 @@ let OutputService = class OutputService extends Disposable {
502
554
  this.setLevelIsDefaultContext();
503
555
  this.setLevelContext();
504
556
  if (this.activeChannel) {
505
- this.storageService.store(OUTPUT_ACTIVE_CHANNEL_KEY, this.activeChannel.id, StorageScope.WORKSPACE, StorageTarget.MACHINE);
506
- }
507
- else {
557
+ this.storageService.store(
558
+ OUTPUT_ACTIVE_CHANNEL_KEY,
559
+ this.activeChannel.id,
560
+ StorageScope.WORKSPACE,
561
+ StorageTarget.MACHINE
562
+ );
563
+ } else {
508
564
  this.storageService.remove(OUTPUT_ACTIVE_CHANNEL_KEY, StorageScope.WORKSPACE);
509
565
  }
510
566
  }
511
567
  };
512
- OutputService = ( __decorate([
513
- ( __param(0, IStorageService)),
514
- ( __param(1, IInstantiationService)),
515
- ( __param(2, ITextModelService)),
516
- ( __param(3, ILogService)),
517
- ( __param(4, ILoggerService)),
518
- ( __param(5, ILifecycleService)),
519
- ( __param(6, IViewsService)),
520
- ( __param(7, IContextKeyService)),
521
- ( __param(8, IDefaultLogLevelsService)),
522
- ( __param(9, IFileDialogService)),
523
- ( __param(10, IFileService)),
524
- ( __param(11, IWorkbenchEnvironmentService))
525
- ], OutputService));
568
+ OutputService = ( __decorate([( __param(0, IStorageService)), ( __param(1, IInstantiationService)), ( __param(2, ITextModelService)), ( __param(3, ILogService)), ( __param(4, ILoggerService)), ( __param(5, ILifecycleService)), ( __param(6, IViewsService)), ( __param(7, IContextKeyService)), ( __param(8, IDefaultLogLevelsService)), ( __param(9, IFileDialogService)), ( __param(10, IFileService)), ( __param(11, IWorkbenchEnvironmentService))], OutputService));
526
569
 
527
570
  export { OutputService };