Commit graph

211 commits

Author SHA1 Message Date
Qiming Zhao
e99f1c8079 fix type issues with previewer and completion 2021-07-22 22:18:08 +08:00
Qiming Zhao
05c2a824a0 Tags, selectionRange & accessor support for document symbols 2021-07-22 21:37:53 +08:00
Heyward Fann
f76e310d42
feat: callHierarchy support (#297)
needs https://github.com/neoclide/coc.nvim/pull/2756

closes https://github.com/neoclide/coc-tsserver/issues/128
2021-06-10 15:29:25 +08:00
nateroling
d24d75de9b
Add support for tsconfigPath setting (#286)
* Add support for tsconfigPath setting

* Fix a typo, add config option to package.json

* formatting

* Update setting description in package.json

Co-authored-by: Nate Roling <roling@cartegraph.com>
2021-06-07 11:29:30 +08:00
Heyward Fann
fd957b20f9
feat: update preferences.importModuleSpecifier (#295)
https://github.com/microsoft/vscode/pull/110536
2021-06-07 11:26:52 +08:00
Heyward Fann
e719ef07a5
feat: tsserver.findAllFileReferences (#292) 2021-06-04 18:54:48 +08:00
Heyward Fann
e7cdffd8d4
fix: save tsEntry.data for resolveCompletionItem (#294)
close #293
2021-06-04 18:53:46 +08:00
Heyward Fann
cd624aa05e
feat: Import Statement Completions (#291)
https://devblogs.microsoft.com/typescript/announcing-typescript-4-3/#import-statement-completions
2021-05-28 18:45:47 +08:00
Raidou
579e8920a7
feat: support tagClosing for JSX (#277) 2021-04-07 18:31:04 +08:00
Qiming Zhao
0f3e462afd fix untitled buffer not work
Closes #261
2021-02-22 18:44:16 +08:00
Pranshu Srivastava
e3eae62e37
Nitpick: Spelling fix. (#258)
PTAL.
2021-02-11 13:05:02 +08:00
Qiming Zhao
6d3036523e use esbuild replace webpack 2021-01-06 17:42:01 +08:00
Qiming Zhao
a24ce777ee add version string to statusline 2020-12-22 14:59:34 +08:00
Qiming Zhao
e209c1999f fix tags undefined
Closes #242
2020-12-21 16:51:36 +08:00
Qiming Zhao
954e292f2f use next release of coc.nvim 2020-12-17 20:28:49 +08:00
Qiming Zhao
7f0b662778 fix error on dispose 2020-12-17 15:41:00 +08:00
Qiming Zhao
3ad16ac686 improve organizeImports for single document 2020-12-16 11:33:34 +08:00
Heyward Fann
f2860b493b
feat: add insertSpaceAfterOpeningAndBeforeClosingEmptyBraces (#239)
https://github.com/microsoft/TypeScript/pull/41304
2020-12-10 16:55:04 +08:00
Qiming Zhao
a31d8acf66 fix validate settings not respected
Closes #238
2020-12-09 15:21:17 +08:00
Qiming Zhao
cca85a2724 fix invalid uri
Closes #237
2020-12-09 14:04:50 +08:00
Qiming Zhao
de0fa5c6a2 support languages from plugins
Closes #235
2020-12-08 18:50:01 +08:00
Qiming Zhao
c4ae2c2fbf rework bufferSyncSupport 2020-12-07 18:57:53 +08:00
Qiming Zhao
2acdb233c6 fix not work witk javascriptjsx filetype 2020-11-24 12:32:07 +08:00
Qiming Zhao
c08e52f97e use workspace.expand for npm path 2020-11-24 11:36:50 +08:00
JUX84
2540b7f626
update ts to 4.1.2 and fix build (promise typings) (#232) 2020-11-24 10:21:06 +08:00
Qiming Zhao
37618c49eb update dependencies 2020-11-13 12:43:45 +08:00
Qiming Zhao
20d2b6fd32 fix duplicated workspace symbols provider 2020-10-05 19:00:15 +08:00
Qiming Zhao
7999ac085e ignore not applicable refactor code actions 2020-09-22 19:20:14 +08:00
樊冬
43117c63b0
fix: fix up the locale (#205) 2020-09-18 16:00:54 +08:00
Qiming Zhao
ae48046032 fix isPreferred of CodeAction 2020-09-12 01:26:53 +08:00
Qiming Zhao
1a22372358 support useAliasesForRenames configuration
Closes #196
2020-08-21 23:26:08 +08:00
Duc Nghiem Xuan
e4f3ab555b
Don't include this function types in completeFunctionCall (#195) 2020-08-20 20:17:04 +08:00
Qiming Zhao
72a515a635 fix possible wrong name for completion detail request
Closes #178
2020-08-08 20:51:18 +08:00
Hyeon Kim (김지현)
8113366d5e
Support the new path of Yarn v2 pnpify SDK (#181)
Pnpify SDKs are not located in `.vscode/pnpify` anymore. It's in
`.yarn/sdks` instead. Adding it to MODULE_FOLDERS.

Reference:
  https://github.com/yarnpkg/berry/pull/1446
  https://github.com/yarnpkg/berry/pull/1481
  52f625c453
2020-07-14 12:53:22 +08:00
Qiming Zhao
50d6c6241a use tsserver.pluginPaths replace tsserver.pluginRoot 2020-07-13 19:57:09 +08:00
Qiming Zhao
031fa8f441 Go to Symbol in workspace includes all opened projects 2020-06-20 11:21:33 +08:00
Qiming Zhao
f1d89b6c59 update dependencies 2020-05-21 14:57:14 +08:00
Qiming Zhao
8fadbb20d7 use Mutex for rename files in sequence 2020-04-18 19:18:00 +08:00
Qiming Zhao
8fb49605c7 make sure new file loaded on rename 2020-04-18 17:39:04 +08:00
Qiming Zhao
1b48e94fcf fix preferences not respected
Closes #142
2020-04-18 16:24:41 +08:00
Qiming Zhao
e7fd3852d7 fix ensureConfigurationForDocument could not work
Document could not exists on BufEnter
2020-04-17 22:16:26 +08:00
Qiming Zhao
3a87cacccc fix range of configFile diagnostics 2020-04-17 20:04:36 +08:00
Qiming Zhao
fe05e038d5 new features as VSCode
* Support tsserver.watchOptions
* Improve triggerCharacters for completion
* Configure command on server startup
2020-04-17 19:40:22 +08:00
Qiming Zhao
9c54e2dee7 fix cmd is null for watchBuild 2020-04-17 16:02:42 +08:00
Qiming Zhao
92891a3096 support @ts-expect-error directive on tsserver v390 2020-04-17 16:00:08 +08:00
Qiming Zhao
ef22359a1b Retrive tscPath from typescriptServiceClient 2020-04-17 15:47:45 +08:00
Qiming Zhao
52f625c453 support yarn2 with pnpify 2020-04-17 12:19:17 +08:00
Qiming Zhao
916af592dd fix insertText for optional completionItem 2020-04-15 19:14:50 +08:00
Qiming Zhao
eec50a98f2 improve resolved completionItem
Closes #137
2020-04-15 16:15:19 +08:00
Qiming Zhao
64fd389b71 add preferences.importModuleSpecifierEnding configuration
Closes #136
2020-04-10 19:52:24 +08:00
Qiming Zhao
22720dced6 Add configuration for includeAutomaticOptionalChainCompletions
Closes #134
2020-04-10 18:19:55 +08:00
Konstantin Saveljev
7a8d2ec524
Add setting to configure the max memory for tsserver (#129) 2020-03-23 11:31:53 +08:00
Qiming Zhao
d5d4be5aa1 update dependencies 2020-03-21 16:40:03 +08:00
Qiming Zhao
e99f045359 update dependencies 2020-03-21 14:54:58 +08:00
Qiming Zhao
c474a8c63b use custom temp fodler 2020-03-06 18:44:06 +08:00
Qiming Zhao
aa9a8aa0e3 support semicolons format option 2019-12-11 18:50:15 +08:00
chemzqm
07e857d965 support format.enabled configuration 2019-11-23 17:17:49 +08:00
chemzqm
f9309a6d80 use configuration for each document 2019-11-23 17:11:42 +08:00
chemzqm
f59086837e load formatOptons by document uri
Closes #81
2019-11-23 13:35:02 +08:00
gavrilyak
aef36c8345 fix rename feature (#86)
* fix rename feature

* Update fileConfigurationManager.ts
2019-10-31 09:33:49 +08:00
chemzqm
59e8093402 fix watchBuild task failed 2019-10-06 19:43:39 +08:00
chemzqm
2b9c89822d use global tsc when local tsc not found 2019-10-05 22:01:18 +08:00
Heyward Fann
eb88dbd0f2 fix(server): fix reportUnnecessary (#78)
close #77
2019-10-02 15:16:01 +08:00
chemzqm
91fc042eb2 make useBatchedBufferSync used for update only
Avoid issues with buffer reload by checktime.
2019-09-23 13:12:38 +08:00
chemzqm
486202a7e5 upgrade typescript module, remove noSemicolons preferences 2019-09-09 12:26:36 +08:00
Geoff Whatley
3a4f993918 resolve tsserver.js via an absolute path (#57)
this commit changes the `tsserver.js` resolution logic to use an
absolute path rather than a relative one. previously, if a user wanted
to use a `tsserver.js` that was local to a project but didn't live in
`node_modules` (which would be automatically resolved by default), the
`tsserver.tsdk` needed to be hardcoded to an absolute path. this
required the user to modify `coc-settings.json` each time they wished to
switch projects. by resolving to an absolute path, a user can now set
the value to a relative path which will resolve correctly per project.

this change facilitates simplified usage of Yarn v2's PnP feature, which
can generate a project-specific `tsserver.js` to enable correct IDE
integration.
2019-09-09 12:04:01 +08:00
Morgan McCauley
74bb59b24e Dispose of status bar item when disabling tsserver (#66) 2019-09-09 12:01:38 +08:00
Greg Hurrell
c80ae7b19b Fix mispelled variable name (#63) 2019-08-27 11:21:42 +08:00
anark
e8c91d52ac Setup file watching for .tsx/.jsx as well as .ts/.js files (#53) 2019-07-31 01:12:15 +08:00
chemzqm
56c60a2ef1 improve check of statusItem 2019-07-22 02:06:03 +08:00
chemzqm
da55c11b9f fix showUnused not work 2019-07-20 03:08:11 +08:00
chemzqm
ea84909a86 fix shouldTrigger check 2019-07-09 15:37:16 +08:00
chemzqm
87e09cfb18 cache error on require typescript module 2019-06-27 14:28:21 +08:00
chemzqm
c10f34304c add tsserver.ignoreLocalTsserver configuration 2019-06-27 10:43:32 +08:00
chemzqm
74bd823e4e check if buffer is handled 2019-06-26 12:33:39 +08:00
chemzqm
686f2b2110 catch error on signatureHelp 2019-06-24 07:03:01 +08:00
chemzqm
4fc7de6766 fix tsserver module not resolved 2019-06-20 19:37:40 +08:00
chemzqm
143ebcf542 use webpack 2019-06-20 07:36:12 +08:00
chemzqm
27887574ef fix error thrown on highlight 2019-06-14 19:28:19 +08:00
chemzqm
3e925b9d7c replace find-up 2019-06-13 22:52:57 +08:00
chemzqm
0d84cdf870 Revert "support b:coc_tsserver_disable, closes #13"
This reverts commit 5946299675.
2019-06-13 22:28:42 +08:00
chemzqm
d7e2a9dfbb restart tsserver on normal exit 2019-06-13 13:18:50 +08:00
chemzqm
5946299675 support b:coc_tsserver_disable, closes #13 2019-06-12 20:42:41 +08:00
chemzqm
8b3a276e18 fix proposed module not found 2019-06-12 19:50:37 +08:00
chemzqm
c3d2bc4d4d fix suggestionActions.enabled option not working 2019-06-11 17:36:41 +08:00
chemzqm
fff7bdd57f fix validate.enable not work sometimes 2019-06-11 15:42:52 +08:00
chemzqm
f1aa930569 add new features:
- Loading status
- Batched buffer synchronize
- Configuration for showUnused variable
- Smart selection support
- Support 'auto' as quoteStyle
- Support validateDefaultNpmLocation
2019-06-10 02:24:30 +08:00
chemzqm
a3d81e2cb8 use new API for documentHighlight 2019-06-09 23:01:07 +08:00
chemzqm
046670f54b udpate dependencies 2019-06-09 22:03:27 +08:00
chemzqm
bffc00e668 fix wrong replace 2019-06-06 12:44:05 +08:00
chemzqm
26bb4b4872 add organizeImports codeAction 2019-06-05 23:11:56 +08:00
chemzqm
ab0927f744 feat(quickfix): mark sigle fix isPrefered 2019-06-04 14:23:12 +08:00
Heyward Fann
4d1714e057 remove TS version from status line (#30) 2019-05-23 09:59:41 +08:00
chemzqm
7563b04482 use local tsserverForkStart 2019-04-19 20:56:00 +08:00
chemzqm
8f7bf42a36 resolve tsc from workspaceFolder 2019-04-19 18:27:37 +08:00
chemzqm
fe5c4d84dd resolve local tsserver from workspaceFolders 2019-04-19 18:00:05 +08:00
chemzqm
f29a6f424b use workspaceFolder for project root 2019-04-19 17:42:55 +08:00
chemzqm
cd7391f846 fix watchBuild throw error, fix #18 2019-04-12 19:23:36 +08:00
chemzqm
898bf1585f use vim to run watchBuild 2019-04-12 16:33:19 +08:00
chemzqm
e76a4ef550 fix status item not shown with javascript document 2019-04-05 11:37:43 +08:00