Skip to content

Commit 701d9ed

Browse files
authored
change line ending from crlf to lf (#60)
1 parent 3c5b855 commit 701d9ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+2316
-2316
lines changed

.gitignore

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
**/node_modules/
2-
.DS_Store
3-
target/
4-
bin/
5-
out/
6-
**/lib
7-
**/server
8-
**/*.vsix
1+
**/node_modules/
2+
.DS_Store
3+
target/
4+
bin/
5+
out/
6+
**/lib
7+
**/server
8+
**/*.vsix

.travis.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
language: node_js
2-
3-
node_js:
4-
- '--lts'
5-
6-
os:
7-
- linux
8-
- osx
9-
10-
before_install:
11-
- if [ $TRAVIS_OS_NAME == "linux" ]; then
12-
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
13-
sh -e /etc/init.d/xvfb start;
14-
sleep 3;
15-
fi
16-
- cd extension
17-
18-
install:
19-
- npm install -g vsce
20-
- npm install -g typescript
21-
- npm install -g gulp
22-
- npm install
23-
24-
script:
25-
- gulp tslint
26-
- gulp build_server
27-
- vsce package
28-
- npm test --silent
1+
language: node_js
2+
3+
node_js:
4+
- '--lts'
5+
6+
os:
7+
- linux
8+
- osx
9+
10+
before_install:
11+
- if [ $TRAVIS_OS_NAME == "linux" ]; then
12+
export CXX="g++-4.9" CC="gcc-4.9" DISPLAY=:99.0;
13+
sh -e /etc/init.d/xvfb start;
14+
sleep 3;
15+
fi
16+
- cd extension
17+
18+
install:
19+
- npm install -g vsce
20+
- npm install -g typescript
21+
- npm install -g gulp
22+
- npm install
23+
24+
script:
25+
- gulp tslint
26+
- gulp build_server
27+
- vsce package
28+
- npm test --silent

.vscodeignore

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
.vscode/**
2-
.vscode-test/**
3-
out/test/**
4-
test/**
5-
src/**
6-
**/*.map
7-
jdtls.ext/**
8-
vscode/**
9-
tsconfig.json
10-
gulpfile.js
11-
.gitignore
1+
.vscode/**
2+
.vscode-test/**
3+
out/test/**
4+
test/**
5+
src/**
6+
**/*.map
7+
jdtls.ext/**
8+
vscode/**
9+
tsconfig.json
10+
gulpfile.js
11+
.gitignore

CHANGELOG.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Change Log
2-
All notable changes to the "vscode-java-dependency" extension will be documented in this file.
3-
4-
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5-
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6-
7-
## 0.3.0 - 2018-05-14
8-
### Added
9-
- View Java source code in the flat package
10-
- View Java project dependencies, supporting Eclipse/Maven/Gradle
11-
- Create simple Java project
1+
# Change Log
2+
All notable changes to the "vscode-java-dependency" extension will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5+
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6+
7+
## 0.3.0 - 2018-05-14
8+
### Added
9+
- View Java source code in the flat package
10+
- View Java project dependencies, supporting Eclipse/Maven/Gradle
11+
- Create simple Java project

README.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
# Java Dependencies
2-
3-
[![Travis CI](https://travis-ci.org/Microsoft/vscode-java-dependency.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-java-dependency)
4-
5-
## Overview
6-
7-
A lightweight extension to provide additional Java project explorer features. It works with [Language Support for Java by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.java) to provide the following features:
8-
9-
* Dependency viewer
10-
![viewer](https://raw.githubusercontent.com/Microsoft/vscode-java-dependency/master/images/project-dependency.gif)
11-
12-
* Create simple Java Project
13-
![create project](https://raw.githubusercontent.com/Microsoft/vscode-java-dependency/master/images/create-project.gif)
14-
15-
## Requirements
16-
17-
- JDK (version 1.8.0 or later)
18-
- VS Code (version 1.23.0 or later)
19-
- [Language Support for Java by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.java) (version 0.14.0 or later)
20-
21-
## Contribution
22-
23-
### Build
24-
* Prerequirement
25-
- Node.js
26-
- Java SDK 1.8.0 or above
27-
28-
* Go to root folder:
29-
```
30-
npm install -g gulp
31-
npm install
32-
gulp build_server
33-
```
34-
35-
## Telemetry
36-
VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy statement](https://go.microsoft.com/fwlink/?LinkID=528096&clcid=0x409) to learn more. If you don't wish to send usage data to Microsoft, you can set the `telemetry.enableTelemetry` setting to `false`. Learn more in our [FAQ](https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting).
1+
# Java Dependencies
2+
3+
[![Travis CI](https://travis-ci.org/Microsoft/vscode-java-dependency.svg?branch=master)](https://travis-ci.org/Microsoft/vscode-java-dependency)
4+
5+
## Overview
6+
7+
A lightweight extension to provide additional Java project explorer features. It works with [Language Support for Java by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.java) to provide the following features:
8+
9+
* Dependency viewer
10+
![viewer](https://raw.githubusercontent.com/Microsoft/vscode-java-dependency/master/images/project-dependency.gif)
11+
12+
* Create simple Java Project
13+
![create project](https://raw.githubusercontent.com/Microsoft/vscode-java-dependency/master/images/create-project.gif)
14+
15+
## Requirements
16+
17+
- JDK (version 1.8.0 or later)
18+
- VS Code (version 1.23.0 or later)
19+
- [Language Support for Java by Red Hat](https://marketplace.visualstudio.com/items?itemName=redhat.java) (version 0.14.0 or later)
20+
21+
## Contribution
22+
23+
### Build
24+
* Prerequirement
25+
- Node.js
26+
- Java SDK 1.8.0 or above
27+
28+
* Go to root folder:
29+
```
30+
npm install -g gulp
31+
npm install
32+
gulp build_server
33+
```
34+
35+
## Telemetry
36+
VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our [privacy statement](https://go.microsoft.com/fwlink/?LinkID=528096&clcid=0x409) to learn more. If you don't wish to send usage data to Microsoft, you can set the `telemetry.enableTelemetry` setting to `false`. Learn more in our [FAQ](https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting).

jdtls.ext/.project

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<projectDescription>
3-
<name>parent</name>
4-
<comment></comment>
5-
<projects>
6-
</projects>
7-
<buildSpec>
8-
<buildCommand>
9-
<name>org.eclipse.m2e.core.maven2Builder</name>
10-
<arguments>
11-
</arguments>
12-
</buildCommand>
13-
</buildSpec>
14-
<natures>
15-
<nature>org.eclipse.m2e.core.maven2Nature</nature>
16-
</natures>
17-
</projectDescription>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>parent</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.m2e.core.maven2Builder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
16+
</natures>
17+
</projectDescription>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
eclipse.preferences.version=1
2-
encoding/<project>=UTF-8
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
activeProfiles=
2-
eclipse.preferences.version=1
3-
resolveWorkspaceProjects=true
4-
version=1
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<classpath>
3-
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4-
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5-
<classpathentry exported="true" kind="lib" path="lib/gson-2.7.jar"/>
6-
<classpathentry kind="src" path="src/"/>
7-
<classpathentry exported="true" kind="lib" path="lib/commons-io-2.5.jar"/>
8-
<classpathentry exported="true" kind="lib" path="lib/commons-lang3-3.6.jar"/>
9-
<classpathentry kind="output" path="target/classes"/>
10-
</classpath>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
4+
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
5+
<classpathentry exported="true" kind="lib" path="lib/gson-2.7.jar"/>
6+
<classpathentry kind="src" path="src/"/>
7+
<classpathentry exported="true" kind="lib" path="lib/commons-io-2.5.jar"/>
8+
<classpathentry exported="true" kind="lib" path="lib/commons-lang3-3.6.jar"/>
9+
<classpathentry kind="output" path="target/classes"/>
10+
</classpath>
Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,38 @@
1-
/*******************************************************************************
2-
* Copyright (c) 2018 Microsoft Corporation and others.
3-
* All rights reserved. This program and the accompanying materials
4-
* are made available under the terms of the Eclipse Public License v1.0
5-
* which accompanies this distribution, and is available at
6-
* http://www.eclipse.org/legal/epl-v10.html
7-
*
8-
* Contributors:
9-
* Microsoft Corporation - initial API and implementation
10-
*******************************************************************************/
11-
12-
package com.microsoft.jdtls.ext.core;
13-
14-
import java.util.List;
15-
16-
import org.apache.commons.lang3.StringUtils;
17-
import org.eclipse.core.runtime.IProgressMonitor;
18-
import org.eclipse.jdt.ls.core.internal.IDelegateCommandHandler;
19-
20-
public class CommandHandler implements IDelegateCommandHandler {
21-
22-
@Override
23-
public Object executeCommand(String commandId, List<Object> arguments, IProgressMonitor monitor) throws Exception {
24-
if (!StringUtils.isBlank(commandId)) {
25-
switch (commandId) {
26-
case "java.project.list":
27-
return ProjectCommand.execute(arguments, monitor);
28-
case "java.getPackageData":
29-
return PackageCommand.getChildren(arguments, monitor);
30-
case "java.resolvePath":
31-
return PackageCommand.resolvePath(arguments, monitor);
32-
default:
33-
break;
34-
}
35-
}
36-
throw new UnsupportedOperationException(String.format("Not supported commandId: '%s'.", commandId));
37-
}
38-
}
1+
/*******************************************************************************
2+
* Copyright (c) 2018 Microsoft Corporation and others.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the Eclipse Public License v1.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.eclipse.org/legal/epl-v10.html
7+
*
8+
* Contributors:
9+
* Microsoft Corporation - initial API and implementation
10+
*******************************************************************************/
11+
12+
package com.microsoft.jdtls.ext.core;
13+
14+
import java.util.List;
15+
16+
import org.apache.commons.lang3.StringUtils;
17+
import org.eclipse.core.runtime.IProgressMonitor;
18+
import org.eclipse.jdt.ls.core.internal.IDelegateCommandHandler;
19+
20+
public class CommandHandler implements IDelegateCommandHandler {
21+
22+
@Override
23+
public Object executeCommand(String commandId, List<Object> arguments, IProgressMonitor monitor) throws Exception {
24+
if (!StringUtils.isBlank(commandId)) {
25+
switch (commandId) {
26+
case "java.project.list":
27+
return ProjectCommand.execute(arguments, monitor);
28+
case "java.getPackageData":
29+
return PackageCommand.getChildren(arguments, monitor);
30+
case "java.resolvePath":
31+
return PackageCommand.resolvePath(arguments, monitor);
32+
default:
33+
break;
34+
}
35+
}
36+
throw new UnsupportedOperationException(String.format("Not supported commandId: '%s'.", commandId));
37+
}
38+
}

0 commit comments

Comments
 (0)