Skip to content

Commit

Permalink
fix: adding additional debug output (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelday authored Mar 24, 2019
1 parent 3e5c574 commit 44d9113
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 7 deletions.
53 changes: 50 additions & 3 deletions src/papyrus-lang-vscode/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 13 additions & 3 deletions src/papyrus-lang-vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,20 @@
},
"description": "Advanced language support for Bethesda Game Studio's Papyrus scripting language.",
"devDependencies": {
"@semantic-release/changelog": "^3.0.2",
"@semantic-release/git": "^7.0.8",
"@types/ini": "^1.3.30",
"@types/mocha": "^5.2.6",
"@types/node": "^11.11.3",
"@types/winreg": "^1.2.30",
"cpr": "^3.0.1",
"prettier": "^1.16.4",
"rimraf": "^2.6.3",
"semantic-release": "^15.13.3",
"semantic-release-vsce": "^2.2.6",
"tslint": "^5.14.0",
"typescript": "^3.3.3333",
"vscode": "^1.1.30",
"semantic-release": "^15.13.3",
"semantic-release-vsce": "^2.2.6"
"vscode": "^1.1.30"
},
"displayName": "Papyrus",
"engines": {
Expand Down Expand Up @@ -209,6 +211,14 @@
},
"release": {
"repositoryUrl": "git://github.com/joelday/papyrus-lang.git",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/git",
"@semantic-release/github"
],
"verifyConditions": [
"semantic-release-vsce",
"@semantic-release/github"
Expand Down
6 changes: 5 additions & 1 deletion src/papyrus-lang-vscode/src/server/LanguageClientHost.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ export class LanguageClientHost implements ILanguageClientHost, Disposable {
};

this._outputChannel.appendLine(`Creating Language Client instance with options:`);
this._outputChannel.appendLine(JSON.stringify(toolArguments));
this._outputChannel.appendLine(JSON.stringify(toolArguments, null, 4));
this._outputChannel.appendLine('');

this._client = new LanguageClient({
game: this._game,
Expand All @@ -123,6 +124,9 @@ export class LanguageClientHost implements ILanguageClientHost, Disposable {
this._status.next(ClientHostStatus.running);
} catch (error) {
this._outputChannel.appendLine(`Error on language service pre-start: ${error.toString()}`);
if (error instanceof Error) {
this._outputChannel.appendLine(error.stack);
}

this._error.next(error.toString());
this._status.next(ClientHostStatus.error);
Expand Down

0 comments on commit 44d9113

Please sign in to comment.