Skip to content

Commit

Permalink
Merge pull request ballerina-platform#72 from ThemiraChathumina/balle…
Browse files Browse the repository at this point in the history
…rina-swan-lake-version

Introduce plugin support for Ballerina Swan Lake
  • Loading branch information
NipunaRanasinghe authored May 22, 2024
2 parents aed1585 + e377855 commit 1b15224
Show file tree
Hide file tree
Showing 1,860 changed files with 44,957 additions and 327,745 deletions.
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/type_bug.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: "Bug Report"
about: "Report a bug if something is not working as expected"
labels: 'Type/Bug'

---

**Description:**
<!-- Give a brief description of the bug -->

**Steps to reproduce:**

**Affected Versions:**

**OS, DB, other environment details and versions:**

**Related Issues (optional):**
<!-- Any related issues such as sub tasks, issues reported in other repositories (e.g component repositories), similar problems, etc. -->

**Suggested Labels (optional):**
<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->

**Suggested Assignees (optional):**
<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/type_improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: "Improvement Request"
about: "Create an improvement request for an existing feature"
labels: 'Type/Improvement'

---

**Description:**
<!-- Give a brief description of the improvement -->

**Describe your problem(s)**

**Describe your solution(s)**

**Related Issues (optional):**
<!-- Any related issues such as sub tasks, issues reported in other repositories (e.g component repositories), similar problems, etc. -->

**Suggested Labels (optional):**
<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->

**Suggested Assignees (optional):**
<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/type_new_feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: "New Feature Request"
about: "Create a new feature request"
labels: 'Type/NewFeature'

---

**Description:**
<!-- Give a brief description of the new feature -->

**Describe your problem(s)**

**Describe your solution(s)**

**Related Issues (optional):**
<!-- Any related issues such as sub tasks, issues reported in other repositories (e.g component repositories), similar problems, etc. -->

**Suggested Labels (optional):**
<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->

**Suggested Assignees (optional):**
<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/type_task.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "Task"
about: "Create a task which you want to keep track"
labels: 'Type/Task'

---

**Description:**
<!-- Give a brief description of the task -->

**Describe your task(s)**

**Related Issues (optional):**
<!-- Any related issues such as sub tasks, issues reported in other repositories (e.g component repositories), similar problems, etc. -->

**Suggested Labels (optional):**
<!-- Optional comma separated list of suggested labels. Non committers can’t assign labels to issues, so this will help issue creators who are not a committer to suggest possible labels-->

**Suggested Assignees (optional):**
<!--Optional comma separated list of suggested team members who should attend the issue. Non committers can’t assign issues to assignees, so this will help issue creators who are not a committer to suggest possible assignees-->
23 changes: 23 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## Purpose
> Describe the problems, issues, or needs driving this feature/fix and include links to related issues.
Fixes #<Issue Number>

## Approach
> Describe how you are implementing the solutions along with the design details.
## Samples
> Provide high-level details about the samples related to this feature.
## Remarks
> List any other known issues, related PRs, TODO items, or any other notes related to the PR.
## Check List
- [ ] Read the [Contributing Guide](https://github.com/ballerina-platform/ballerina-lang/blob/master/CONTRIBUTING.md)
- [ ] Added/updated necessary documentation
- [ ] Checked Tooling Support
- [ ] Added necessary tests
- [ ] Unit Tests
- [ ] Integration Tests
- [ ] Increased Test Coverage

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*


/out/
*.*~
/Ballerina-Intellij-plugin.zip
Expand All @@ -21,3 +22,6 @@ hs_err_pid*
/Ballerina-Intellij-plugin.iml
/plugin-intellij.iws
!/gradle/wrapper/gradle-wrapper.jar

BallerinaParsingTest.log
todo.txt
54 changes: 23 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,41 +4,32 @@
[![Version](https://img.shields.io/jetbrains/plugin/v/9520-ballerina.svg)](https://plugins.jetbrains.com/plugin/9520-ballerina)
[![Downloads](https://img.shields.io/jetbrains/plugin/d/9520-ballerina.svg)](https://plugins.jetbrains.com/plugin/9520-ballerina)

## Deprecation notice
The Ballerina IntelliJ IDEA plugin is no longer being maintained or supported. It is recommended that the plugin users switch to the official [Ballerina Visual Studio Code extension](https://marketplace.visualstudio.com/items?itemName=WSO2.ballerina), which is actively maintained and offers the same functionality.


---

The IntelliJ Ballerina plugin provides the Ballerina development capabilities in IntelliJ IDEA. Click the links below for instructions on how to download, install, and use the features of the IntelliJ plugin.

- [**Prerequisites**](https://ballerina.io/learn/tools-ides/intellij-plugin/#prerequisites)
- [**Installing the plugin**](https://ballerina.io/learn/tools-ides/intellij-plugin/#installing-the-plugin)
- [Installing via the IntelliJ IDE](https://ballerina.io/learn/tools-ides/intellij-plugin/#installing-via-the-intellij-ide)
- [Installing using the ZIP file](https://ballerina.io/learn/tools-ides/intellij-plugin/#installing-using-the-zip-file)
- [**Using the plugin**](https://ballerina.io/learn/tools-ides/intellij-plugin/using-the-intellij-plugin/)
- [Creating a new Ballerina project](https://ballerina.io/learn/tools-ides/intellij-plugin/using-the-intellij-plugin#creating-a-new-ballerina-project)
- [Setting up Ballerina SDK for an existing project](https://ballerina.io/learn/tools-ides/intellij-plugin/using-the-intellij-plugin#setting-up-ballerina-sdk-for-an-existing-project)
- [Creating a new Ballerina file](https://ballerina.io/learn/tools-ides/intellij-plugin/using-the-intellij-plugin/#creating-a-new-ballerina-file)
- [**Using the features of the plugin**](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features/)
- [Running Ballerina Programs](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#running-ballerina-programs)
- [Debugging Ballerina Programs](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#debugging-ballerina-programs)
- [Sequence Diagram View](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#viewing-the-sequence-diagram)
- [Import Modules On-the-fly](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#importing-modules-on-the-fly)
- [Auto Import Unambiguous Modules](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#importing-unambiguous-modules)
- [Find Usages](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#finding-usage)
- [Go To Definition](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#viewing-definitions)
- [Formatting](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#formatting-ballerina-codes)
- [Parameter Information](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#viewing-details-of-parameters)
- [Quick Documentation](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#viewing-documentation)
- [Annotation Fields Suggestions](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#adding-annotation-fields-via-suggestions)
- [File Templates](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#using-file-templates)
- [Live Templates and Code snippets](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#using-code-snippet-templates)
- [Spell Checking](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#checking-spellings)
- [Semantic Analyzing](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#analyzing-semantics)
- [Code Folding](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#code-folding)
- [**Developer Guide**]((https://ballerina.io/learn/tools-ides/intellij-plugin/#developer-guide))
- [Testing/Debugging the plugin using IntelliJ](https://ballerina.io/learn/tools-ides/intellij-plugin/using-intellij-plugin-features#testing/debugging-the-plugin-using-intellij)
- [**Installing the plugin**](getting-started/plugin-installation/README.md#installing-the-plugin)
- [Installing using the ZIP file](getting-started/plugin-installation/README.md#installing-using-the-zip-file)
- [**Using the plugin**](getting-started/using-the-plugin/README.md#using-the-plugin)
- [Setting up Ballerina SDK for an existing project](getting-started/using-the-plugin/setting-up-ballerina-sdk/README.md#setting-up-ballerina-sdk)
- [Creating a new Ballerina file](getting-started/using-the-plugin/new-ballerina-project/README.md#create-new-ballerina-files)
- [**Using the features of the plugin**](getting-started/plugin-features/README.md#plugin-features)
- [Running ballerina programs](getting-started/plugin-features/README.md#running-ballerina-programs)
- [Running ballerina tests](getting-started/plugin-features/README.md#running-ballerina-tests)
- [Import modules on-the-fly](getting-started/plugin-features/README.md#import-modules-on-the-fly)
- [Find usage](getting-started/plugin-features/README.md#find-usage)
- [Go to definition](getting-started/plugin-features/README.md#go-to-definition)
- [Formatting](getting-started/plugin-features/README.md#formatting)
- [Signature help](getting-started/plugin-features/README.md#signature-help)
- [Quick documentation](getting-started/plugin-features/README.md#quick-documentation)
- [Code completions](getting-started/plugin-features/README.md#code-completions)
- [Live templates](getting-started/plugin-features/README.md#live-templates)
- [Code actions](getting-started/plugin-features/README.md#code-actions)
- [Error diagnostics](getting-started/plugin-features/README.md#error-diagnostics)
- [Spell checking](getting-started/plugin-features/README.md#spell-checking)
- [Code folding](getting-started/plugin-features/README.md#code-folding)
- [**Developer Guide**](getting-started/plugin-developer-guide/README.md#plugin-developer-guide)
- [Testing/Debugging the plugin using IntelliJ](getting-started/plugin-developer-guide/README.md#testingdebugging-the-plugin-using-intellij-idea)

## Release Versions Schema

Expand All @@ -51,6 +42,7 @@ Below you can see the plugin versions that correspond to the versions of the Int
0.982.0 - 0.991.0 | IntelliJ IDEA 2017.3 - 2018.2
0.991.1 - 1.2.1 | IntelliJ IDEA 2018.3 - 2019.3
1.2.2 - 1.2.x | IntelliJ IDEA 2018.3 - 2020.2
2.0.0 | IntelliJ IDEA 2022.0 - 2024.1

## Useful links
* Use the ballerina-dev@googlegroups.com mailing list to discuss code changes to the Ballerina project.
Expand Down
48 changes: 48 additions & 0 deletions build-config/checkstyle/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/*
* Copyright (c) 2024, WSO2 LLC. (http://www.wso2.com)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

plugins {
id "de.undercouch.download"
}

apply plugin: 'java-library'

task downloadCheckstyleRuleFiles(type: Download) {
src([
'https://raw.githubusercontent.com/wso2/code-quality-tools/v1.4/checkstyle/jdk-17/checkstyle.xml',
'https://raw.githubusercontent.com/wso2/code-quality-tools/v1.4/checkstyle/jdk-17/suppressions.xml'
])
overwrite false
onlyIfNewer true
dest buildDir
}

jar {
enabled = false
}

clean {
enabled = false
}

artifacts.add('default', file("$project.buildDir/checkstyle.xml")) {
builtBy('downloadCheckstyleRuleFiles')
}

artifacts.add('default', file("$project.buildDir/suppressions.xml")) {
builtBy('downloadCheckstyleRuleFiles')
}
Loading

0 comments on commit 1b15224

Please sign in to comment.