diff --git a/CHANGELOG.md b/CHANGELOG.md index 9445dc4..6fe536e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,15 @@ +# [1.1.0](https://github.com/atom-ide-community/atom-ide-javascript/compare/v1.0.1...v1.1.0) (2020-07-25) + + +### Bug Fixes + +* depend on atom-ide-base instead ([b1cde77](https://github.com/atom-ide-community/atom-ide-javascript/commit/b1cde7734ab14e249b0c2ef2fa584f8ed5a4fec0)) + + +### Features + +* add autocomplete-paths ([60fc8f4](https://github.com/atom-ide-community/atom-ide-javascript/commit/60fc8f49dae95eb35d78c7d8f1b2defab5e1682e)) + ## [1.0.1](https://github.com/atom-ide-community/atom-ide-javascript/compare/v1.0.0...v1.0.1) (2020-07-25) diff --git a/dist/main.js b/dist/main.js index bc4a65a..46f0cc8 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,2 +1,2 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("atom");(e=t)&&"object"==typeof e&&"default"in e&&e.default;let a;exports.activate=function(e){a=new t.CompositeDisposable,async function(){const e=["atom-ide-datatip","atom-ide-signature-help","atom-ide-hyperclick","atom-ide-definitions","atom-ide-outline","linter","intentions","atom-typescript","linter-eslint"];e.some(e=>!atom.packages.isPackageLoaded(e))&&await Promise.resolve().then((function(){return require("./index-27f59b67.js")})).then((function(e){return e.index})).then(t=>{t.install("atom-ide-javascript-js",!1),e.filter(e=>!atom.packages.isPackageLoaded(e)).forEach(e=>{atom.notifications.addInfo(`Enabling package ${e} that is needed for atom-ide-javascript`),atom.packages.enablePackage(e)})})}().then(()=>{atom.config.set("atom-typescript.allowJS",!0),atom.config.set("atom-typescript.checkAllFilesOnSave",!1),atom.commands.dispatch(atom.workspace.getElement(),"typescript:activate")})},exports.config={},exports.deactivate=function(){a&&a.dispose(),a=null},exports.provideYourService=function(){}; +"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("atom");(e=t)&&"object"==typeof e&&"default"in e&&e.default;let a;exports.activate=function(e){a=new t.CompositeDisposable,async function(){const e=["atom-ide-base","atom-typescript","linter-eslint","autocomplete-paths"];e.some(e=>!atom.packages.isPackageLoaded(e))&&await Promise.resolve().then((function(){return require("./index-27f59b67.js")})).then((function(e){return e.index})).then(t=>{t.install("atom-ide-javascript-js",!1),e.filter(e=>!atom.packages.isPackageLoaded(e)).forEach(e=>{atom.notifications.addInfo(`Enabling package ${e} that is needed for atom-ide-javascript`),atom.packages.enablePackage(e)})})}().then(()=>{atom.config.set("atom-typescript.allowJS",!0),atom.config.set("atom-typescript.checkAllFilesOnSave",!1),atom.commands.dispatch(atom.workspace.getElement(),"typescript:activate")})},exports.config={},exports.deactivate=function(){a&&a.dispose(),a=null},exports.provideYourService=function(){}; //# sourceMappingURL=main.js.map diff --git a/dist/main.js.map b/dist/main.js.map index d0cff05..876aa5c 100644 --- a/dist/main.js.map +++ b/dist/main.js.map @@ -1 +1 @@ -{"version":3,"file":"main.js","sources":["../src/main.js","../src/typescript.js"],"sourcesContent":["import { CompositeDisposable } from \"atom\";\nimport {setupTypeScript} from \"./typescript.js\";\n\nlet subscriptions;\n\n/**\n * called by Atom when activating an extension\n * @param {any} state the current state of atom\n */\nexport function activate(state) {\n // Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable\n subscriptions = new CompositeDisposable();\n\n package_deps().then(() => {\n setupTypeScript()\n });\n}\n\n/**\n * install Atom package dependencies if not already loaded\n */\nasync function package_deps() {\n // Add entries from package-deps here manually\n // (to prevent loading atom-package-deps and package.json when the deps are already loaded)\n const deps = [\n \"atom-ide-datatip\",\n \"atom-ide-signature-help\",\n \"atom-ide-hyperclick\",\n \"atom-ide-definitions\",\n \"atom-ide-outline\",\n \"linter\",\n \"intentions\",\n \"atom-typescript\",\n \"linter-eslint\",\n ];\n if (deps.some((p) => !atom.packages.isPackageLoaded(p))) {\n await import(\"atom-package-deps\").then((atom_package_deps) => {\n // install if not installed\n atom_package_deps.install(\"atom-ide-javascript-js\", false);\n // enable if disabled\n deps.filter((p) => !atom.packages.isPackageLoaded(p)).forEach(p => {\n atom.notifications.addInfo(`Enabling package ${p} that is needed for atom-ide-javascript`)\n atom.packages.enablePackage(p)\n })\n });\n }\n}\n\n/**\n * called by Atom when deactivating an extension\n */\nexport function deactivate() {\n if (subscriptions) {\n subscriptions.dispose();\n }\n subscriptions = null;\n}\n\n/**\n * called by IDE extensions to retrieve the service for registration\n * @return the current instance\n */\nexport function provideYourService() {}\n\nexport const config = {\n // doSomething: {\n // title: \"title\",\n // description: \"config description\",\n // type: \"boolean\", // 'number', 'string'\n // default: true,\n // },\n};\n","// This configures atom-typescript\nexport function setupTypeScript() {\n // use atom-typescript for javascript\n atom.config.set(\"atom-typescript.allowJS\", true)\n // disable check files which slows down Atom\n atom.config.set(\"atom-typescript.checkAllFilesOnSave\", false)\n // activate atom-typescript\n atom.commands.dispatch(atom.workspace.getElement(), \"typescript:activate\")\n}\n"],"names":["subscriptions","state","CompositeDisposable","async","deps","some","p","atom","packages","isPackageLoaded","Promise","then","atom_package_deps","install","filter","forEach","notifications","addInfo","enablePackage","package_deps","config","set","commands","dispatch","workspace","getElement","dispose"],"mappings":"gJAGA,IAAIA,mBAMG,SAAkBC,GAEvBD,EAAgB,IAAIE,sBAUtBC,uBAGQC,EAAQ,CACZ,mBACA,0BACA,sBACA,uBACA,mBACA,SACA,aACA,kBACA,iBAEEA,EAAKC,KAAMC,IAAOC,KAAKC,SAASC,gBAAgBH,WAC5CI,kDAAO,8DAAqBC,KAAMC,IAEtCA,EAAkBC,QAAQ,0BAA0B,GAEpDT,EAAKU,OAAQR,IAAOC,KAAKC,SAASC,gBAAgBH,IAAIS,QAAQT,IAC5DC,KAAKS,cAAcC,QAAS,oBAAmBX,4CAC/CC,KAAKC,SAASU,cAAcZ,OA7BlCa,GAAeR,KAAK,KCVpBJ,KAAKa,OAAOC,IAAI,2BAA2B,GAE3Cd,KAAKa,OAAOC,IAAI,uCAAuC,GAEvDd,KAAKe,SAASC,SAAShB,KAAKiB,UAAUC,aAAc,yCDyDhC,sBAbf,WACDzB,GACFA,EAAc0B,UAEhB1B,EAAgB,iCAOX"} \ No newline at end of file +{"version":3,"file":"main.js","sources":["../src/main.js","../src/typescript.js"],"sourcesContent":["import { CompositeDisposable } from \"atom\";\nimport {setupTypeScript} from \"./typescript.js\";\n\nlet subscriptions;\n\n/**\n * called by Atom when activating an extension\n * @param {any} state the current state of atom\n */\nexport function activate(state) {\n // Events subscribed to in atom's system can be easily cleaned up with a CompositeDisposable\n subscriptions = new CompositeDisposable();\n\n package_deps().then(() => {\n setupTypeScript()\n });\n}\n\n/**\n * install Atom package dependencies if not already loaded\n */\nasync function package_deps() {\n // Add entries from package-deps here manually\n // (to prevent loading atom-package-deps and package.json when the deps are already loaded)\n const deps = [\n \"atom-ide-base\",\n \"atom-typescript\",\n \"linter-eslint\",\n \"autocomplete-paths\"\n ];\n if (deps.some((p) => !atom.packages.isPackageLoaded(p))) {\n await import(\"atom-package-deps\").then((atom_package_deps) => {\n // install if not installed\n atom_package_deps.install(\"atom-ide-javascript-js\", false);\n // enable if disabled\n deps.filter((p) => !atom.packages.isPackageLoaded(p)).forEach(p => {\n atom.notifications.addInfo(`Enabling package ${p} that is needed for atom-ide-javascript`)\n atom.packages.enablePackage(p)\n })\n });\n }\n}\n\n/**\n * called by Atom when deactivating an extension\n */\nexport function deactivate() {\n if (subscriptions) {\n subscriptions.dispose();\n }\n subscriptions = null;\n}\n\n/**\n * called by IDE extensions to retrieve the service for registration\n * @return the current instance\n */\nexport function provideYourService() {}\n\nexport const config = {\n // doSomething: {\n // title: \"title\",\n // description: \"config description\",\n // type: \"boolean\", // 'number', 'string'\n // default: true,\n // },\n};\n","// This configures atom-typescript\nexport function setupTypeScript() {\n // use atom-typescript for javascript\n atom.config.set(\"atom-typescript.allowJS\", true)\n // disable check files which slows down Atom\n atom.config.set(\"atom-typescript.checkAllFilesOnSave\", false)\n // activate atom-typescript\n atom.commands.dispatch(atom.workspace.getElement(), \"typescript:activate\")\n}\n"],"names":["subscriptions","state","CompositeDisposable","async","deps","some","p","atom","packages","isPackageLoaded","Promise","then","atom_package_deps","install","filter","forEach","notifications","addInfo","enablePackage","package_deps","config","set","commands","dispatch","workspace","getElement","dispose"],"mappings":"gJAGA,IAAIA,mBAMG,SAAkBC,GAEvBD,EAAgB,IAAIE,sBAUtBC,uBAGQC,EAAQ,CACZ,gBACA,kBACA,gBACA,sBAEEA,EAAKC,KAAMC,IAAOC,KAAKC,SAASC,gBAAgBH,WAC5CI,kDAAO,8DAAqBC,KAAMC,IAEtCA,EAAkBC,QAAQ,0BAA0B,GAEpDT,EAAKU,OAAQR,IAAOC,KAAKC,SAASC,gBAAgBH,IAAIS,QAAQT,IAC5DC,KAAKS,cAAcC,QAAS,oBAAmBX,4CAC/CC,KAAKC,SAASU,cAAcZ,OAxBlCa,GAAeR,KAAK,KCVpBJ,KAAKa,OAAOC,IAAI,2BAA2B,GAE3Cd,KAAKa,OAAOC,IAAI,uCAAuC,GAEvDd,KAAKe,SAASC,SAAShB,KAAKiB,UAAUC,aAAc,yCDoDhC,sBAbf,WACDzB,GACFA,EAAc0B,UAEhB1B,EAAgB,iCAOX"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 16f3878..e73d256 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "atom-ide-javascript", - "version": "1.0.1", + "version": "1.1.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b6a2b0d..f690947 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "atom-ide-javascript", "main": "dist/main.js", - "version": "1.0.1", + "version": "1.1.0", "author": "Amin Yahyaabadi", "description": " ", "keywords": [