-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Move examples into rope_examples/ directory - Add diagnostic list addon - Remove unrelated files from final build package - Update build workflow
- Loading branch information
Showing
15 changed files
with
1,097 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: CI | ||
on: | ||
push: | ||
# branches: [ master ] | ||
pull_request: | ||
# branches: [ master ] | ||
|
||
jobs: | ||
ci: | ||
name: "CI" | ||
uses: ./.github/workflows/build.yml | ||
with: | ||
git-ref: ${{ github.ref }} | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
extends RefCounted | ||
class_name DiagnosticList_Diagnostic | ||
|
||
|
||
class Pack extends RefCounted: | ||
var res_uri: StringName | ||
var diagnostics: Array[DiagnosticList_Diagnostic] | ||
|
||
|
||
enum Severity { | ||
Error, | ||
Warning, | ||
Info, | ||
Hint, | ||
} | ||
|
||
|
||
## Represents the file path as res:// path | ||
@export var res_uri: StringName | ||
@export var line_start: int # zero-based | ||
@export var column_start: int # zero-based | ||
@export var severity: Severity | ||
@export var message: String | ||
|
||
var _filename: StringName | ||
|
||
|
||
## Returns the filename, i.e. the last component of the path including the extension. | ||
func get_filename() -> StringName: | ||
if _filename.is_empty(): | ||
_filename = StringName(res_uri.get_file()) | ||
return _filename | ||
|
||
|
Oops, something went wrong.