Skip to content

Commit 6c7f1e3

Browse files
committed
chore(intelephense): version compatibility
1 parent c1e85fd commit 6c7f1e3

File tree

3 files changed

+47
-42
lines changed

3 files changed

+47
-42
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "coc-phpls",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "PHP language server extension for coc.nvim",
55
"main": "lib/index.js",
66
"publisher": "marlonfan",
@@ -203,7 +203,7 @@
203203
},
204204
"dependencies": {
205205
"glob": "^7.1.4",
206-
"intelephense": "^1.2.3",
206+
"intelephense": "^1.3.4",
207207
"tslib": "^1.10.0",
208208
"vscode": "^1.1.36",
209209
"vscode-languageclient": "^5.2.1",

src/index.ts

+8-3
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,16 @@ let languageClient: LanguageClient;
4040
let extensionContext: ExtensionContext;
4141
let clientDisposable:Disposable;
4242
let file: string;
43+
let licenceKey: string;
4344

4445
export async function activate(context: ExtensionContext): Promise<void> {
4546
extensionContext = context;
4647

4748
let c = workspace.getConfiguration();
4849
const config = c.get("phpls") as any;
50+
const intelephenseConfig = c.get("intelephense") as any;
4951
const enable = config.enable;
52+
licenceKey = intelephenseConfig.licenceKey || '';
5053

5154
file = require.resolve("intelephense");
5255

@@ -103,7 +106,8 @@ function createClient(context: ExtensionContext, clearCache: boolean) {
103106
initializationOptions: {
104107
globalStoragePath: context.storagePath,
105108
storagePath: context.storagePath,
106-
clearCache: clearCache
109+
clearCache: clearCache,
110+
licenceKey: licenceKey,
107111
},
108112
middleware: {
109113
provideCompletionItem: (
@@ -185,10 +189,11 @@ function createClient(context: ExtensionContext, clearCache: boolean) {
185189
return languageClient;
186190
}
187191

188-
function indexWorkspace() {
192+
function indexWorkspace(licenceKey: string) {
189193
if(!languageClient) {
190194
return;
191-
}
195+
}
196+
192197
languageClient.stop().then(_ => {
193198
clientDisposable.dispose();
194199
languageClient = createClient(extensionContext, true);

yarn.lock

+37-37
Original file line numberDiff line numberDiff line change
@@ -81,25 +81,25 @@
8181
tslint-config-prettier "^1.6.0"
8282
tslint-react "^3.2.0"
8383

84-
"@nodelib/[email protected].1":
85-
version "2.1.1"
86-
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.1.tgz#7fa8fed654939e1a39753d286b48b4836d00e0eb"
87-
integrity sha512-NT/skIZjgotDSiXs0WqYhgcuBKhUMgfekCmCGtkUAiLqZdOnrdjmZr9wRl3ll64J9NF79uZ4fk16Dx0yMc/Xbg==
84+
"@nodelib/[email protected].3":
85+
version "2.1.3"
86+
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b"
87+
integrity sha512-eGmwYQn3gxo4r7jdQnkrrN6bY478C3P+a/y72IJukF8LjB6ZHeB3c+Ehacj3sYeSmUXGlnA67/PmbM9CVwL7Dw==
8888
dependencies:
89-
"@nodelib/fs.stat" "2.0.1"
89+
"@nodelib/fs.stat" "2.0.3"
9090
run-parallel "^1.1.9"
9191

92-
"@nodelib/[email protected].1", "@nodelib/fs.stat@^2.0.1":
93-
version "2.0.1"
94-
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.1.tgz#814f71b1167390cfcb6a6b3d9cdeb0951a192c14"
95-
integrity sha512-+RqhBlLn6YRBGOIoVYthsG0J9dfpO79eJyN7BYBkZJtfqrBwf2KK+rD/M/yjZR6WBmIhAgOV7S60eCgaSWtbFw==
92+
"@nodelib/[email protected].3", "@nodelib/fs.stat@^2.0.2":
93+
version "2.0.3"
94+
resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.3.tgz#34dc5f4cabbc720f4e60f75a747e7ecd6c175bd3"
95+
integrity sha512-bQBFruR2TAwoevBEd/NWMoAAtNGzTRgdrqnYCc7dhzfoNvqPzLyqlEQnzZ3kVnNrSp25iyxE00/3h2fqGAGArA==
9696

97-
"@nodelib/fs.walk@^1.2.1":
98-
version "1.2.2"
99-
resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.2.tgz#6a6450c5e17012abd81450eb74949a4d970d2807"
100-
integrity sha512-J/DR3+W12uCzAJkw7niXDcqcKBg6+5G5Q/ZpThpGNzAUz70eOR6RV4XnnSN01qHZiVl0eavoxJsBypQoKsV2QQ==
97+
"@nodelib/fs.walk@^1.2.3":
98+
version "1.2.4"
99+
resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.4.tgz#011b9202a70a6366e436ca5c065844528ab04976"
100+
integrity sha512-1V9XOY4rDW0rehzbrcqAmHnz8e7SKvX27gh8Gt2WgB0+pdzdiLV83p72kZPU+jvMbS1qU5mauP2iOvO8rhmurQ==
101101
dependencies:
102-
"@nodelib/fs.scandir" "2.1.1"
102+
"@nodelib/fs.scandir" "2.1.3"
103103
fastq "^1.6.0"
104104

105105
"@protobufjs/aspromise@^1.1.1", "@protobufjs/aspromise@^1.1.2":
@@ -640,16 +640,15 @@ fast-diff@^1.2.0:
640640
resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03"
641641
integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==
642642

643-
fast-glob@^3.0.4:
644-
version "3.0.4"
645-
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.0.4.tgz#d484a41005cb6faeb399b951fd1bd70ddaebb602"
646-
integrity sha512-wkIbV6qg37xTJwqSsdnIphL1e+LaGz4AIQqr00mIubMaEhv1/HEmJ0uuCGZRNRUkZZmOB5mJKO0ZUTVq+SxMQg==
643+
fast-glob@^3.1.1:
644+
version "3.1.1"
645+
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.1.1.tgz#87ee30e9e9f3eb40d6f254a7997655da753d7c82"
646+
integrity sha512-nTCREpBY8w8r+boyFYAx21iL6faSsQynliPHM4Uf56SbkyohCNxpVPEH9xrF5TXKy+IsjkPUHDKiUkzBVRXn9g==
647647
dependencies:
648-
"@nodelib/fs.stat" "^2.0.1"
649-
"@nodelib/fs.walk" "^1.2.1"
650-
glob-parent "^5.0.0"
651-
is-glob "^4.0.1"
652-
merge2 "^1.2.3"
648+
"@nodelib/fs.stat" "^2.0.2"
649+
"@nodelib/fs.walk" "^1.2.3"
650+
glob-parent "^5.1.0"
651+
merge2 "^1.3.0"
653652
micromatch "^4.0.2"
654653

655654
fast-json-stable-stringify@^2.0.0:
@@ -739,10 +738,10 @@ getpass@^0.1.1:
739738
dependencies:
740739
assert-plus "^1.0.0"
741740

742-
glob-parent@^5.0.0:
743-
version "5.0.0"
744-
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.0.0.tgz#1dc99f0f39b006d3e92c2c284068382f0c20e954"
745-
integrity sha512-Z2RwiujPRGluePM6j699ktJYxmPpJKCfpGA13jz2hmFZC7gKetzrWvg5KN3+OsIFmydGyZ1AVwERCq1w/ZZwRg==
741+
glob-parent@^5.1.0:
742+
version "5.1.0"
743+
resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.0.tgz#5f4c1d1e748d30cd73ad2944b3577a81b081e8c2"
744+
integrity sha512-qjtRgnIVmOfnKUE3NJAQEdk+lKrxfw8t5ke7SXtfMTHcjsBfOfWXCQfdb30zfDoZQ2IRSIiidmjtbHZPZ++Ihw==
746745
dependencies:
747746
is-glob "^4.0.1"
748747

@@ -914,22 +913,23 @@ int64-buffer@^0.1.9:
914913
version "0.1.10"
915914
resolved "https://registry.yarnpkg.com/int64-buffer/-/int64-buffer-0.1.10.tgz#277b228a87d95ad777d07c13832022406a473423"
916915

917-
intelephense@^1.2.3:
918-
version "1.2.3"
919-
resolved "https://registry.yarnpkg.com/intelephense/-/intelephense-1.2.3.tgz#83d501cb2c9fd6ef45a8cf0e43513bfe3af83e70"
920-
integrity sha512-1qh3a6++7S/unmfUDe3Fr3yjpsvY6nxFixTAoHn2n3vIjcBVLNe/NDF1WYrlP9jVU2n85ZwEn4RUoMv3axxPfw==
916+
intelephense@^1.3.4:
917+
version "1.3.4"
918+
resolved "https://registry.yarnpkg.com/intelephense/-/intelephense-1.3.4.tgz#3b9fcf8741569f93b40a2f2ca27a5ee82097e814"
919+
integrity sha512-hFchGpVS6eOKktS8k1mJa1FopGoquwbAfx0r6Wzl76Q5HFhTtrTCiJ2idEvAJQhEdO69hyg/mL/Xi65K8MvM6g==
921920
dependencies:
922921
"@bmewburn/js-beautify" "^1.10.4"
923922
"@bmewburn/turndown" "^5.0.3"
924923
"@bmewburn/turndown-plugin-gfm" "^1.0.2"
925924
"@bmewburn/vscode-html-languageserver" "^1.0.2"
926925
applicationinsights "^1.4.0"
927-
fast-glob "^3.0.4"
926+
fast-glob "^3.1.1"
928927
fs-extra "^8.1.0"
929928
html-to-text "^5.1.1"
930929
lru-cache "^5.1.1"
931930
micromatch "^4.0.2"
932931
protobufjs "~6.8.8"
932+
semver "^6.3.0"
933933
uuid "^3.3.2"
934934
vscode-jsonrpc "^4.1.0-next.2"
935935
vscode-languageserver "^5.3.0-next.8"
@@ -1074,10 +1074,10 @@ lru-cache@^5.1.1:
10741074
dependencies:
10751075
yallist "^3.0.2"
10761076

1077-
merge2@^1.2.3:
1078-
version "1.2.3"
1079-
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.2.3.tgz#7ee99dbd69bb6481689253f018488a1b902b0ed5"
1080-
integrity sha512-gdUU1Fwj5ep4kplwcmftruWofEFt6lfpkkr3h860CXbAB9c3hGb55EOL2ali0Td5oebvW0E1+3Sr+Ur7XfKpRA==
1077+
merge2@^1.3.0:
1078+
version "1.3.0"
1079+
resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.3.0.tgz#5b366ee83b2f1582c48f87e47cf1a9352103ca81"
1080+
integrity sha512-2j4DAdlBOkiSZIsaXk4mTE3sRS02yBHAtfy127xRV3bQUFqXkjHCHLW6Scv7DwNRbIWNHH8zpnz9zMaKXIdvYw==
10811081

10821082
micromatch@^4.0.2:
10831083
version "4.0.2"
@@ -1424,7 +1424,7 @@ semver@^5.6.0:
14241424
resolved "https://registry.yarnpkg.com/semver/-/semver-5.6.0.tgz#7e74256fbaa49c75aa7c7a205cc22799cac80004"
14251425
integrity sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==
14261426

1427-
semver@^6.2.0:
1427+
semver@^6.2.0, semver@^6.3.0:
14281428
version "6.3.0"
14291429
resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d"
14301430
integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==

0 commit comments

Comments
 (0)