Skip to content

Commit

Permalink
Merged from master
Browse files Browse the repository at this point in the history
  • Loading branch information
TwitchBronBron committed Sep 20, 2019
2 parents e034166 + aa565df commit 915c998
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 17 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).


## [1.19.5] - 2019-09-20
### Fixed
- issue where part of the debug crash output was not being logged to the console (see [#198](https://github.com/rokucommunity/vscode-brightscript-language/pull/198))


## [1.19.4] - 2019-09-19
### Changed
- upgraded to [brighterscript-formatter](https://www.npmjs.com/package/brighterscript-formatter)@1.0.2
### Fixed
- formatting bug where, if a line ended with `end` (even property names), the following lines would all be de-indented



## [1.19.3] - 2019-09-18
### Fixed
Expand Down Expand Up @@ -334,6 +346,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[1.19.5]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.4...v1.19.5
[1.19.4]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.3...v1.19.4
[1.19.3]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.2...v1.19.3
[1.19.2]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.1...v1.19.2
[1.19.1]: https://github.com/RokuCommunity/vscode-brightscript-language/compare/v1.19.0...v1.19.1
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ This process will REPLACE any existing version of the extension you have install

## Contributing

[![](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/images/0)](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/links/0)[![](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/images/1)](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/links/1)[![](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/images/2)](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/links/2)[![](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/images/3)](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/links/3)[![](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/images/4)](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/links/4)[![](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/images/5)](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/links/5)[![](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/images/6)](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/links/6)[![](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/images/7)](https://sourcerer.io/fame/RokuCommunity/RokuCommunity/vscode-brightscript-language/links/7)
[![](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/images/0)](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/links/0)[![](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/images/1)](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/links/1)[![](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/images/2)](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/links/2)[![](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/images/3)](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/links/3)[![](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/images/4)](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/links/4)[![](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/images/5)](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/links/5)[![](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/images/6)](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/links/6)[![](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/images/7)](https://sourcerer.io/fame/TwitchBronBron/rokucommunity/vscode-brightscript-language/links/7)

View our [developer guidelines](https://github.com/RokuCommunity/vscode-brightscript-language/blob/master/developer-guidelines.md) for more information on how to contribute to this extension.

Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "brightscript",
"displayName": "BrightScript Language",
"version": "1.9.3",
"version": "1.19.5",
"publisher": "celsoaf",
"description": "Language support for Roku's BrightScript language.",
"author": {
Expand Down Expand Up @@ -43,7 +43,7 @@
"@types/glob": "^7.1.1",
"array-sort": "^1.0.0",
"backoff": "^2.5.0",
"brighterscript-formatter": "^1.0.1",
"brighterscript-formatter": "^1.0.2",
"dotenv": "^6.2.0",
"eol": "^0.9.1",
"fast-xml-parser": "^3.12.16",
Expand Down
13 changes: 8 additions & 5 deletions src/RokuAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,6 @@ export class RokuAdapter {
this.requestPipeline.on('unhandled-console-output', async (responseText: string) => {
//if there was a runtime error, handle it
let hasRuntimeError = this.checkForRuntimeError(responseText);
if (hasRuntimeError) {
console.debug('hasRuntimeError!!');
this.isAtDebuggerPrompt = true;
return;
}

responseText = this.rendezvousTracker.processLogLine(responseText);
//forward all unhandled console output
Expand All @@ -237,6 +232,13 @@ export class RokuAdapter {
this.emit('unhandled-console-output', responseText);
}

// short circuit after the output has been sent as console output
if (hasRuntimeError) {
console.debug('hasRuntimeError!!');
this.isAtDebuggerPrompt = true;
return;
}

this.processUnhandledLines(responseText);
let match;

Expand Down Expand Up @@ -363,6 +365,7 @@ export class RokuAdapter {
break;
case RokuAdapterStatus.none:
this.startCompilingLine = this.getStartingCompilingLine(newLines);
this.compilingLines = this.compilingLines.concat(newLines);
if (this.startCompilingLine !== -1) {
console.debug('processUnhandledLines: entering state RokuAdapterStatus.compiling');
newLines.splice(0, this.startCompilingLine);
Expand Down
2 changes: 1 addition & 1 deletion src/extension.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ describe('extension', () => {

it('registers formatter', () => {
let spy = sinon.spy(vscode.languages, 'registerDocumentRangeFormattingEditProvider');
expect(spy.calledOnce).to.be.false;
expect(spy.getCalls().length).to.equal(0);
extension.activate(<any>{ subscriptions: [] });
expect(spy.getCalls().length).to.be.greaterThan(1);
});
Expand Down

0 comments on commit 915c998

Please sign in to comment.