Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 into lsp-refactor
  • Loading branch information
TwitchBronBron committed May 28, 2024
2 parents 5d5900c + fd977fd commit 5504af2
Show file tree
Hide file tree
Showing 19 changed files with 232 additions and 88 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "16.20.2"
node-version: "14.18.1"
architecture: 'x64' # fix for macos-latest
- run: npm ci
- run: npm run build
- run: npm run lint
Expand All @@ -38,7 +39,8 @@ jobs:
- uses: actions/checkout@master
- uses: actions/setup-node@master
with:
node-version: "16.20.2"
node-version: "14.18.1"
architecture: 'x64' # fix for macos-latest
- run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ./.npmrc
- run: npm ci
- run: npm run build
Expand Down
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



## [0.67.1](https://github.com/rokucommunity/brighterscript/compare/v0.67.0...v0.67.1) - 2024-05-16
### Fixed
- remove ascii color chars in language server logs ([#1189](https://github.com/rokucommunity/brighterscript/pull/1189))
- crash when diagnostic is missing range ([#1174](https://github.com/rokucommunity/brighterscript/pull/1174))



## [0.67.0](https://github.com/rokucommunity/brighterscript/compare/v0.65.27...v0.67.0) - 2024-05-10
### Changed
- Fix formatting with logger output ([#1171](https://github.com/rokucommunity/brighterscript/pull/1171))
- Move function calls to separate diagnostic ([#1169](https://github.com/rokucommunity/brighterscript/pull/1169))
- resolve the stagingDir option relative to the bsconfig.json file ([#1148](https://github.com/rokucommunity/brighterscript/pull/1148))
- Upgrade to @rokucommunity/logger ([#1137](https://github.com/rokucommunity/brighterscript/pull/1137))



## 0.66.0
This release was skipped because we decided to change from the v0.66 alphas to move those breaking changes into v1.



## [0.65.27](https://github.com/rokucommunity/brighterscript/compare/v0.65.26...v0.65.27) - 2024-03-27
### Added
- Plugin hook provide workspace symbol ([#1118](https://github.com/rokucommunity/brighterscript/pull/1118))
Expand Down
31 changes: 8 additions & 23 deletions benchmarks/package-lock.json

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

116 changes: 84 additions & 32 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,6 +1,6 @@
{
"name": "brighterscript",
"version": "0.65.27-local",
"version": "0.67.1-local",
"description": "A superset of Roku's BrightScript language.",
"scripts": {
"preversion": "npm run build && npm run lint && npm run test",
Expand Down Expand Up @@ -128,7 +128,7 @@
},
"dependencies": {
"@rokucommunity/bslib": "^0.1.1",
"@rokucommunity/logger": "^0.3.7",
"@rokucommunity/logger": "^0.3.9",
"@xml-tools/parser": "^1.0.7",
"array-flat-polyfill": "^1.0.1",
"chalk": "^2.4.2",
Expand Down
14 changes: 14 additions & 0 deletions src/DiagnosticMessages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,20 @@ export let DiagnosticMessages = {
message: `Optional chaining may not be used in the left-hand side of an assignment`,
code: 1139,
severity: DiagnosticSeverity.Error
}),
/**
*
* @param name for function calls where we can't find the name of the function
* @param fullName if a namespaced name, this is the full name `alpha.beta.charlie`, otherwise it's the same as `name`
*/
cannotFindFunction: (name: string, fullName?: string) => ({
message: `Cannot find function '${name}'`,
code: 1140,
data: {
name: name,
fullName: fullName ?? name
},
severity: DiagnosticSeverity.Error
})
};

Expand Down
3 changes: 3 additions & 0 deletions src/LanguageServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ export class LanguageServer {
// Create a connection for the server. The connection uses Node's IPC as a transport.
this.connection = this.establishConnection();

//disable logger colors when running in LSP mode
logger.enableColor = false;

//listen to all of the output log events and pipe them into the debug channel in the extension
this.loggerSubscription = logger.subscribe((message) => {
this.connection.tracer.log(message.argsText);
Expand Down
Loading

0 comments on commit 5504af2

Please sign in to comment.