Skip to content

Commit

Permalink
CLI building progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
joelday committed Mar 17, 2019
1 parent 8ce014e commit 8c7d3ee
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 17 deletions.
20 changes: 6 additions & 14 deletions src/papyrus-lang-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,16 +119,12 @@
},
{
"properties": {
"files": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
"file": {
"type": "string"
}
},
"required": [
"files"
"file"
],
"additionalProperties": false
}
Expand Down Expand Up @@ -164,16 +160,12 @@
},
{
"properties": {
"files": {
"type": "array",
"items": {
"type": "string"
},
"uniqueItems": true
"file": {
"type": "string"
}
},
"required": [
"files"
"file"
],
"additionalProperties": false
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,10 @@ export interface IPapyrusTaskOptions {
readonly output?: string;
readonly final?: boolean;
readonly release?: boolean;
readonly scripts?: { readonly files: string[] } | { readonly folders: string[]; readonly noRecurse?: boolean };
readonly project?: string;
readonly scripts?: {
readonly file?: string;
readonly folder?: string;
readonly noRecurse?: boolean;
};
}
39 changes: 37 additions & 2 deletions src/papyrus-lang-vscode/src/features/CompilerTaskProvider.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,44 @@
import { TaskProvider, Task, tasks } from 'vscode';
import { CancellationToken, Disposable } from 'vscode-jsonrpc';
import { IExtensionConfigProvider } from '../ExtensionConfigProvider';
import { IPapyrusTaskDefinition, TaskOf } from './CompilerTaskDefinition';
import { PapyrusGame } from '../PapyrusGame';
import { IPapyrusTaskDefinition, TaskOf, IPapyrusTaskOptions } from './CompilerTaskDefinition';
import { ILanguageClientManager } from '../server/LanguageClientManager';
import { PapyrusGame } from '../PapyrusGame';
import { ICreationKitInfo } from '../CreationKitInfoProvider';

// function taskOptionsToCommandLineArguments(options: IPapyrusTaskOptions, creationKitInfo: ICreationKitInfo) {
// const args: string[] = [];
// const isFallout4 = options.game === PapyrusGame.fallout4;

// if (isFallout4 && options.project) {
// args.push(options.project);
// } else {
// const imports =

// if (options.scripts.file) {
// args.push(options.scripts.file);
// } else if (options.scripts.folder) {
// args.push(options.scripts.folder);
// args.push('-all');

// if (isFallout4 && options.scripts.noRecurse) {
// args.push('-norecurse');
// }
// }
// }

// if (options.debugOutput) {
// args.push('-debug');
// }

// if (options.final) {
// args.push('-final');
// }

// args.push('-final');

// return args;
// }

export class CompilerTaskProvider implements TaskProvider, Disposable {
private _taskProviderHandle: Disposable;
Expand Down

0 comments on commit 8c7d3ee

Please sign in to comment.