Skip to content

Commit

Permalink
Adding fileTypes and updating docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
dinbtechit committed Oct 19, 2023
1 parent 224bf10 commit 35ffd89
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
# ngxs Changelog

## [Unreleased]
### Added
- Introducing FileTypes for `*.state.ts;*actions.ts;*.selectors.ts` for Jetbrains to recommend NGXS plugin
### Fixed
- Fixed Error - Java.lang.RuntimeException: java.lang.Exception: NgxsAnnotator

## [0.0.7] - 2023-10-15

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ auto-completions for Jetbrains IDE.
# Features

> Checkout the [Feature](https://plugins.jetbrains.com/plugin/22604-ngxs/features) documentation for more details.
- Simply right click -> New -> NGXS CLI/Schematics to generate a boiler plate store.
- Navigate to Action Implementation using Gutter Icons
- LiveTemplate to autocompletion for creating `@Actions`, `@Selectors` and `export class NewActions` quickly
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pluginGroup = com.github.dinbtechit.ngxs
pluginName = ngxs
pluginRepositoryUrl = https://github.com/dinbtechit/ngxs
# SemVer format -> https://semver.org
pluginVersion = 0.0.7
pluginVersion = 0.0.8

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 223
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class NgxsAnnotator : Annotator {
var actionFileName: String? = null
var actionVirtualFile: VirtualFile? = null

if (!element.containingFile.name.contains(".ts")) return

if (NgxsActionsPsiUtil.isActionClass(element)) {
isImplementationExist = NgxsActionsPsiUtil.isActionImplExist(element)
problemType = ProblemHighlightType.LIKE_UNUSED_SYMBOL
Expand Down
2 changes: 2 additions & 0 deletions src/main/resources/META-INF/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
<resource-bundle>messages.NgxsBundle</resource-bundle>

<extensions defaultExtensionNs="com.intellij">
<fileType name="TypeScript" language="TypeScript"
patterns="*.state.ts;*actions.ts;*.selectors.ts"/>
<completion.contributor language="TypeScript"
implementationClass="com.github.dinbtechit.ngxs.action.editor.codeIntellisense.completion.NgxsCompletionContributor"/>
<postStartupActivity implementation="com.github.dinbtechit.ngxs.startup.MyStartupNotifyActivity"/>
Expand Down

0 comments on commit 35ffd89

Please sign in to comment.