Skip to content

Add Auto Complete feature to JSON.stringfy method. #105

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
wants to merge 39 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
3601fc4
Add support for function export
vanackere Nov 16, 2016
77b1f9f
Merge pull request #1 from garethflowers/master
Mar 11, 2017
6ebf189
Merge pull request #2 from vanackere/v1.1
Mar 11, 2017
42e9f9a
Don't add './' if the path already starts with '../'
Mar 11, 2017
de88329
merge 1.1
Mar 11, 2017
aba8938
cleanup
Mar 11, 2017
87f5ce5
src/node-upload.ts(37,44): error TS1122: A tuple type element list ca…
Mar 11, 2017
c8c71d3
update readme
Mar 11, 2017
84eeccb
update launch and tasks
Mar 11, 2017
dfd297f
rename project
Mar 11, 2017
874ff11
package json
Mar 11, 2017
37d0c00
update package json
Mar 11, 2017
a31ba18
Update Metadata
Mar 11, 2017
46f4323
1.3.3
Mar 11, 2017
dd342d3
Ignore Counter
Mar 11, 2017
3226009
Fix issues:
NuclleaR Oct 10, 2017
993450d
Add import action to quick fix menu
NuclleaR Oct 10, 2017
37eb05a
fixed regular expression and process logic to support HOC withRouter …
Oct 11, 2017
99a7f12
added higher order component as a configuration option. This will mak…
Oct 11, 2017
dbd9a25
Add import action to quick fix menu
NuclleaR Oct 10, 2017
6ca46cd
Merge branch 'master' into master
NuclleaR Oct 12, 2017
96144ed
Merge pull request #2 from JesseChrestler/master
NuclleaR Oct 12, 2017
1b69e95
1.4.1
NuclleaR Oct 12, 2017
3b7de28
Added configuration to enable absolute paths
fragsalat Mar 21, 2018
27ab939
Merge pull request #8 from fragsalat/master
NuclleaR Mar 21, 2018
8352289
add semicolon config option
andy-viv Jul 12, 2018
151c486
Merge pull request #15 from andy-viv/semicolon-option
NuclleaR Jul 18, 2018
4e14b3a
Update version
skorenuk Jul 18, 2018
2372183
Fix method signature
skorenuk Jul 18, 2018
4e0ce5a
1.4.3
skorenuk Jul 18, 2018
a153823
Update README with semicolon config option
andy-viv Aug 3, 2018
66fdd13
Fix semicolon Usage
maxjf1 Nov 10, 2018
93ff133
Fixed the issue of showing duplicate entries (with and without quotat…
mohammed-io Jun 22, 2019
15cb00e
Updated version from 1.4.3 to 1.4.4
mohammed-io Jun 22, 2019
73de055
Used index instead of regex for performance
mohammed-io Jun 22, 2019
298ac6c
Added type annotation for parameter
mohammed-io Jun 22, 2019
dc3692c
Merge pull request #30 from mohammed-io/master
NuclleaR Nov 25, 2020
0dd50d4
Merge pull request #24 from maxjf1/patch-1
NuclleaR Nov 25, 2020
59a10cd
Merge pull request #17 from andy-viv/patch-1
NuclleaR Nov 25, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
out
node_modules
icon
COUNTER.md
npm-debug.log
19 changes: 14 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,31 @@
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"args": [
"--extensionDevelopmentPath=${workspaceRoot}"
],
"stopOnEntry": false,
"sourceMaps": true,
"outDir": "${workspaceRoot}/out/src",
"outFiles": [
"${workspaceRoot}/out/src/**/*"
],
"preLaunchTask": "npm"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
"args": [
"--extensionDevelopmentPath=${workspaceRoot}",
"--extensionTestsPath=${workspaceRoot}/out/test"
],
"stopOnEntry": false,
"sourceMaps": true,
"outDir": "${workspaceRoot}/out/test",
"outFiles": [
"${workspaceRoot}/out/test/**/*"
],
"preLaunchTask": "npm"
}
]
}
}
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"args": ["run", "compile", "--loglevel", "silent"],

// The tsc compiler is started in watching mode
"isWatching": true,
"isBackground": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch"
Expand Down
63 changes: 55 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,73 @@
### Auto Import
# Auto Import - ES6, TS, JSX, TSX (VSCode Extension)

Automatically finds, parses and provides code actions and code completion for all available imports. Works with Typescript and TSX.
Automatically finds, parses and provides code actions and code completion for all available imports. Works with JavaScript (ES6) and TypeScript (TS).
Forker from old repo [vscode-extension-auto-import](https://github.com/martinoppitz/vscode-extension-auto-import)

----

<img src="http://g.recordit.co/2yRF1XeSbv.gif">
<img src="https://media.giphy.com/media/l1J9FmoFwrcqr538Y/giphy.gif">

----

## Contributors

* [lukeautry](https://github.com/lukeautry)
* [martinoppitz](https://github.com/martinoppitz)
* [zhaoshengjun](https://github.com/zhaoshengjun)
* [soates](https://github.com/soates)
* [third774](https://github.com/third774)

----

## Configuration

> filesToScan - Glob for which files in your workspace to scan, defaults to '**/*.ts'
> filesToScan - Glob for which files in your workspace to scan, defaults to '**/*.{js, jsx, ts, tsx}'

> showNotifications - Controls if the annoying notifications should be shown, defaults to false

> doubleQuotes - Use double quotes rather than single

> semicolon - Use a semicolon at the end of import statements, defaults to true

> spaceBetweenBraces - Difference between import {test} and import { test }

> autoComplete - Adds found items to intellisense and automatically imports then

----


## Changelog

### 1.4.2

- Fix issues #1 and #13

### 1.4.1

- Add import action to quick fix menu
- Added higher order component as a configuration option

### 1.4.0

- fix jsx, tsx support
- fix infinity loop search
- fix export default keyword

### 1.3.3

- considere flow type annotations

### 1.3.1 / 1.3.2

- Update Metadata

### 1.3.0

- Fork from https://github.com/soates/Auto-Import
- Upgrade Dependencies (e.g. TypeScript >= 2.2.0)
- Add JavaScript Support (ES6)
- Merge Pull-Requests
- Fix TS Errors

### 1.2.2

- Fix for imports not being merged.
Expand All @@ -36,7 +79,7 @@ Automatically finds, parses and provides code actions and code completion for al
- TSX Supported added, Thanks to [lukeautry](https://github.com/lukeautry "lukeautry")
- Minor bug fixes and improvements.

### 1.0.2/1.0.3
### 1.0.2 / 1.0.3

- Merged Pull Request from [lukeautry](https://github.com/lukeautry "lukeautry") and [zhaoshengjun](https://github.com/zhaoshengjun "zhaoshengjun") , Big thanks to both.

Expand All @@ -50,7 +93,7 @@ Automatically finds, parses and provides code actions and code completion for al
- Few small tweaks and fixed error with vscode 1.5.*.

### 0.9

- Added Import status bar, currently show you how many importable objects you have.
- Correctly uses configured file paths for fileWatcher.
- Fixed new exports not being immediately discovered.
Expand All @@ -69,7 +112,7 @@ Automatically finds, parses and provides code actions and code completion for al
- Works on Windows.
- Now on Github.

### 0.7 / 0.7 / 0.7.2
### 0.7.0 / 0.7.1 / 0.7.2

- Add configuration to control notifications and files to scan
- Fixed a few bugs
Expand All @@ -89,3 +132,7 @@ Automatically finds, parses and provides code actions and code completion for al
- Work with node_modules (@angular / underscore for example).


----

Feel free to [open an issue](https://github.com/NuclleaR/vscode-extension-auto-import/issues). [Pull requests](https://github.com/NuclleaR/vscode-extension-auto-import/pulls) are also welcome

202 changes: 124 additions & 78 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,84 +1,130 @@
{
"name": "autoimport",
"displayName": "Auto Import",
"description": "Automatically finds, parses and provides code actions and code completion for all available imports. Works with Typescript and TSX",
"version": "1.2.1",
"publisher": "steoates",
"engines": {
"vscode": "^0.10.10"
"name": "vscode-extension-auto-import",
"displayName": "Auto Import - ES6, TS, JSX, TSX",
"description": "Automatically finds, parses and provides code actions and code completion for all available imports. Works with JavaScript and TypeScript. [Forked]",
"version": "1.4.4",
"contributors": [
{
"name": "soates",
"url": "https://github.com/soates"
},
"galleryBanner": {
"color": "#2d4794",
"theme": "dark"
{
"name": "lukeautry",
"url": "https://github.com/lukeautry"
},
"keywords": [
"typescript",
"imports",
"require",
"TSX",
"auto import"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:typescript",
"onLanguage:typescriptreact"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "extension.scanNodeModules",
"title": "Scan node_modules for imports"
}
],
"configuration": {
"type": "object",
"title": "Auto Import configuration",
"properties": {
"autoimport.filesToScan": {
"type": "string",
"default": "**/*.{ts,tsx}",
"description": "Glob for files to watch and scan, e.g ./src/** ./src/app/**/*.ts. Defaults to **/*.ts"
},
"autoimport.showNotifications": {
"type": "boolean",
"default": false,
"description": "Specifies wether to show notifications from Auto Import"
},
"autoimport.doubleQuotes": {
"type": "boolean",
"default": false,
"description": "Specifies wether to use double quotes"
},
"autoimport.spaceBetweenBraces": {
"type": "boolean",
"default": true,
"description": "Specifies wether to use spaces between first and last brace"
},
"autoimport.autoComplete": {
"type": "boolean",
"default": true,
"description": "Adds found items to intellisense and automatically imports then"
}
}
}
{
"name": "zhaoshengjun",
"url": "https://github.com/zhaoshengjun"
},
"icon": "icon.png",
"homepage": "https://github.com/soates/Auto-Import",
"scripts": {
"vscode:prepublish": "node ./node_modules/vscode/bin/compile",
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
{
"name": "third774",
"url": "https://github.com/third774"
},
"devDependencies": {
"typescript": "^1.8.5",
"vscode": "^0.11.0",
"node-json-db": "0.7.2"
},
"dependencies": {
"lodash": "^4.13.1",
"node-json-db": "^0.7.2"
{
"name": "martinoppitz",
"url": "https://github.com/martinoppitz"
}
],
"publisher": "NuclleaR",
"engines": {
"vscode": "^0.10.10"
},
"galleryBanner": {
"color": "#2d4794",
"theme": "dark"
},
"keywords": [
"javascript",
"typescript",
"imports",
"exports",
"require"
],
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:javascript",
"onLanguage:javascriptreact",
"onLanguage:typescript",
"onLanguage:typescriptreact"
],
"main": "./out/src/extension",
"contributes": {
"commands": [
{
"command": "extension.scanNodeModules",
"title": "Scan node_modules for imports"
}
],
"configuration": {
"type": "object",
"title": "Auto Import configuration",
"properties": {
"autoimport.filesToScan": {
"type": "string",
"default": "**/*.{js,jsx,ts,tsx}",
"description": "Glob for files to watch and scan, e.g ./src/** ./src/app/**/*.ts. Defaults to **/*.{ts,tsx}"
},
"autoimport.absolute": {
"type": "boolean",
"default": false,
"description": "True if the imports should be absolute to the workspace root"
},
"autoimport.sourceRoot": {
"type": "string",
"default": "./",
"description": "Change this if your absolute urls are not absolute from workspace root e.g ./src"
},
"autoimport.showNotifications": {
"type": "boolean",
"default": false,
"description": "Specifies whether to show notifications from Auto Import"
},
"autoimport.doubleQuotes": {
"type": "boolean",
"default": false,
"description": "Specifies whether to use double quotes"
},
"autoimport.semicolon": {
"type": "boolean",
"default": true,
"description": "Specifies whether to use a semicolon at the end of the line"
},
"autoimport.spaceBetweenBraces": {
"type": "boolean",
"default": true,
"description": "Specifies whether to use spaces between first and last brace"
},
"autoimport.autoComplete": {
"type": "boolean",
"default": true,
"description": "Adds found items to intellisense and automatically imports then"
},
"autoimport.higherOrderComponents": {
"type": "string",
"default": "connect|withRouter",
"description": "This allows the importer to find your components name bypass the higher order components that you wrap it in. Each higher order component must be deliminated by pipe |. example: connect|withRouter"
}
}
}
}
},
"icon": "icon.png",
"homepage": "https://github.com/NuclleaR/vscode-extension-auto-import",
"scripts": {
"vscode:prepublish": "tsc -p ./",
"compile": "tsc -watch -p ./",
"postinstall": "node ./node_modules/vscode/bin/install"
},
"devDependencies": {
"@types/node": "7.0.8",
"@types/mocha": "2.2.40",
"mocha": "3.2.0",
"typescript": "2.2.1",
"vscode": "1.1.0"
},
"dependencies": {
"lodash": "4.17.4",
"node-json-db": "0.7.3"
}
}
Loading