@codingame/monaco-vscode-output-service-override 13.1.7 → 14.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.
- package/index.js +1 -4
- package/package.json +10 -9
- package/vscode/src/vs/workbench/contrib/output/browser/output.contribution.js +354 -77
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.d.ts +68 -5
- package/vscode/src/vs/workbench/contrib/output/browser/outputServices.js +289 -22
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.d.ts +58 -4
- package/vscode/src/vs/workbench/contrib/output/browser/outputView.js +244 -14
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.d.ts +55 -22
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModel.js +508 -119
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.d.ts +0 -16
- package/vscode/src/vs/workbench/contrib/output/common/outputChannelModelService.js +0 -34
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IWorkbenchEnvironmentService } from "@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service";
|
|
2
|
-
import { IInstantiationService } from "@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation";
|
|
3
|
-
import { IFileService } from "@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service";
|
|
4
|
-
import { IOutputChannelModel } from "./outputChannelModel.js";
|
|
5
|
-
import { URI } from "@codingame/monaco-vscode-api/vscode/vs/base/common/uri";
|
|
6
|
-
import { ILanguageSelection } from "@codingame/monaco-vscode-api/vscode/vs/editor/common/languages/language";
|
|
7
|
-
export declare class OutputChannelModelService {
|
|
8
|
-
private readonly fileService;
|
|
9
|
-
private readonly instantiationService;
|
|
10
|
-
readonly _serviceBrand: undefined;
|
|
11
|
-
private readonly outputLocation;
|
|
12
|
-
constructor(fileService: IFileService, instantiationService: IInstantiationService, environmentService: IWorkbenchEnvironmentService);
|
|
13
|
-
createOutputChannelModel(id: string, modelUri: URI, language: ILanguageSelection, file?: URI): IOutputChannelModel;
|
|
14
|
-
private _outputDir;
|
|
15
|
-
private get outputDir();
|
|
16
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import { __decorate, __param } from '@codingame/monaco-vscode-api/external/tslib/tslib.es6';
|
|
3
|
-
import '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/extensions';
|
|
4
|
-
import { IWorkbenchEnvironmentService } from '@codingame/monaco-vscode-api/vscode/vs/workbench/services/environment/common/environmentService.service';
|
|
5
|
-
import { IInstantiationService } from '@codingame/monaco-vscode-api/vscode/vs/platform/instantiation/common/instantiation';
|
|
6
|
-
import { IFileService } from '@codingame/monaco-vscode-api/vscode/vs/platform/files/common/files.service';
|
|
7
|
-
import { toLocalISOString } from '@codingame/monaco-vscode-api/vscode/vs/base/common/date';
|
|
8
|
-
import { joinPath } from '@codingame/monaco-vscode-api/vscode/vs/base/common/resources';
|
|
9
|
-
import { FileOutputChannelModel, DelegatedOutputChannelModel } from './outputChannelModel.js';
|
|
10
|
-
|
|
11
|
-
let OutputChannelModelService = class OutputChannelModelService {
|
|
12
|
-
constructor(fileService, instantiationService, environmentService) {
|
|
13
|
-
this.fileService = fileService;
|
|
14
|
-
this.instantiationService = instantiationService;
|
|
15
|
-
this._outputDir = null;
|
|
16
|
-
this.outputLocation = joinPath(environmentService.windowLogsPath, `output_${toLocalISOString(( new Date())).replace(/-|:|\.\d+Z$/g, '')}`);
|
|
17
|
-
}
|
|
18
|
-
createOutputChannelModel(id, modelUri, language, file) {
|
|
19
|
-
return file ? this.instantiationService.createInstance(FileOutputChannelModel, modelUri, language, file) : this.instantiationService.createInstance(DelegatedOutputChannelModel, id, modelUri, language, this.outputDir);
|
|
20
|
-
}
|
|
21
|
-
get outputDir() {
|
|
22
|
-
if (!this._outputDir) {
|
|
23
|
-
this._outputDir = this.fileService.createFolder(this.outputLocation).then(() => this.outputLocation);
|
|
24
|
-
}
|
|
25
|
-
return this._outputDir;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
OutputChannelModelService = ( __decorate([
|
|
29
|
-
( __param(0, IFileService)),
|
|
30
|
-
( __param(1, IInstantiationService)),
|
|
31
|
-
( __param(2, IWorkbenchEnvironmentService))
|
|
32
|
-
], OutputChannelModelService));
|
|
33
|
-
|
|
34
|
-
export { OutputChannelModelService };
|