-
-
Notifications
You must be signed in to change notification settings - Fork 91
Add GDScript to supported languages #3092
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
rinOfTheStars
wants to merge
10
commits into
cursorless-dev:main
Choose a base branch
from
rinOfTheStars:gdscript-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
4436ea8
Initial setup
rinOfTheStars 659337d
gdscript doesnt have explicit interfaces, so this is an easy one
rinOfTheStars 18196ca
formatting changes
rinOfTheStars d44bfae
Merge branch 'cursorless-dev:main' into gdscript-support
rinOfTheStars 2861cb9
add lang doc file
rinOfTheStars 92e746f
disable no-unused-vars err for one line bc yes, I know they're unused…
rinOfTheStars 7292978
disable no-unused-vars err for one line bc yes, I know they're unused…
rinOfTheStars 70d9d90
Merge remote-tracking branch 'refs/remotes/origin/gdscript-support' i…
rinOfTheStars 5a8338f
i have no clue what the syntax to disable a specific rule is, apparen…
rinOfTheStars 73b29a0
run prettier and fix comment formatting as suggested
rinOfTheStars File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,19 @@ | ||
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types"; | ||
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types"; | ||
|
||
// eslint-disable-next-line | ||
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel; | ||
|
||
export const gdscriptScopeSupport: LanguageScopeSupportFacetMap = { | ||
// not applicable | ||
"statement.interface": notApplicable, | ||
"statement.field.interface": notApplicable, | ||
"statement.iteration.interface": notApplicable, | ||
"name.interface": notApplicable, | ||
"name.field.interface": notApplicable, | ||
"name.iteration.interface": notApplicable, | ||
"type.field.interface": notApplicable, | ||
"type.interface": notApplicable, | ||
"type.iteration.interface": notApplicable, | ||
"interior.interface": notApplicable, | ||
}; |
This file contains hidden or 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
5 changes: 5 additions & 0 deletions
5
packages/cursorless-org-docs/src/docs/user/languages/gdscript.mdx
This file contains hidden or 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,5 @@ | ||
import { Language } from "./components/Language"; | ||
|
||
# GDScript | ||
|
||
<Language languageId="gdscript" /> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not a big fan of committing an empty file. Please add at least one scope to it. You can do something simple like
comment
for example.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Going to need to make another PR to add another codium cli naming related fix first so I can more easily do that, but once that's done that should be easy enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #3093 for the fixes mentioned above
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't follow why you would need to update the scripts first? Personally I don't use those scripts at all.
You just run the Cursorless extension from inside of vscode/codium when developing.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's required in this very specific instance because gdscript isn't supported by prod yet, and I can't get developing from the
cursorlessDevelopment
dev profile to work for some reason. Probably need to delete and remake the thing?I can probably bootstrap a local version using the scripts update I made by building from this PR, at the very least, so getting that PR in isn't urgent for now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would definitely recommend getting the development profile working. That will hot reload and apply any changes whenever you save a scm file.
Removing the profile/sandbox and installing it again sounds like something to try.