-
-
Notifications
You must be signed in to change notification settings - Fork 9
refactor: use vscode-langaugeserver-textdocument dependency for document listeners
#126
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
ndonfris
wants to merge
15
commits into
master
Choose a base branch
from
refactor/vscode-langaugeserver-textdocument.dependency
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
refactor: use vscode-langaugeserver-textdocument dependency for document listeners
#126
ndonfris
wants to merge
15
commits into
master
from
refactor/vscode-langaugeserver-textdocument.dependency
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…('logger', 'index')
chore: added @jose-elias-alvarez as contributor
Co-authored-by: @jose-elias-alvarez <[email protected]>
…pened reference uris
…lize()` + 100% coverage - 100% test coverage for `src/utils/file-operations.ts` in `tests/file-operations.test.ts` - `expandNormalize()` method added to `SyncFileHelper` for expanding paths and then performing `path.normalize(expanded)` - updated `package.json` scripts `yarn test:*`/`yarn test` so that `USER=test_user` inside `tests/*.test.ts`
… unknown command - `src/utils/progress-notification.ts` was refactored to barebones builder class for passing around & initializing `progress` reporter - `7001` diagnostic code for warning user of `unknown command` was added --- perf(src/server.ts): speed up server - server now directly calls `connection.sendDiagnostic()` for displaying diagnostics in the client (displays much faster) - `src/diagnostics/cache.ts` no longer debounces intervals, just directly caches diagnostics for the current document - `server.didChangeTextDocument()` no longer shows any `progress` reporting. However, `server.didOpenTextDocument()` kept its progress reporting --- docs(src/analyze.ts): added thorough ts-doc comments - `src/snippets/fishlspEnvVariables.json` adds 7001 diagnostic to env variables - other docs added like `src/diagnostics/error-codes.ts` for 7001 --- test: removed old diagnostic cache test cases
…ound process - fix(src/config.ts): `config.fish_lsp_show_client_popups` defaults to `true` now - fix(src/utils/progress-notification.ts): allows for mutliple progress instances to be specified at once while keeping track of which ones belong to who - fix(src/server.ts): Major changes to the `server.onInitialized()` logic and behavior. Now correctly displays progress during server startup process a single time, and correctly includes both `progress.report(percentage, message)` in its output - fix(src/utils/workspace-manager.ts): removed synchronous calls from `WorkspaceManager.handleOpenDocument()` with commments
…rmal server logs
`fish-lsp info --time-startup` correctly expands both
`$__fish_config_dir` and `$__fish_data_dir` to their actual locations.
It also correctly treats the --time-startup operation like command:
```sh
nvim {$__fish_config_dir,$__fish_data_dir}/config.fish
```
would behave.
To 1:1 match the normal `fish-lsp start` logs, pass
`--use-workspace=$__fish_data_dir` to the `--time-startup` switch.
Matches server/logging behavior on branch:
feat/debounce-progress-notification
….onInitialized()`
…ync token` creation * we use a queue to store the `progress.begin()` `progress.report()` `progress.end()` requests that could be passed to the `async ProgressNotification()` that might not be initailized yet if the client starts up slow. * the queue is flushed after the `async token` has succesfully made it back from the client, and meaning the client is succesfully initalized * uses `connection.sendNotification()` instead of wrapper class the `vscode-languageserver` provides. ----- @todo: chore(src/utils/workspace.ts): probably could be simplified in ----- how it handles the single workspace mode
- `config.fish_lsp_single_workspace_support` variable now is used for considering if our startup background analysis should be limited to the current open workspace or `fish_lsp_all_indexed_workspaces`. - `fish_lsp_single_workspace_support` previously limited definition request fallback behavior by (if it was enabled) it would prevent the server from trying to use fish child_process to resolve a command's path. Now, fish_lsp_single_workspace_support does not effect this fallback operation at all.
- `docs/CHANGELOG.md` for 1.1.1-pre.3 - removed `config.fish_lsp_semantic_handler_type` env variable
…te.ts docs(src/snippets/fishlspEnvVariables.json): improved `fish_lsp_max_diagnostics` description chore: lint comments docs: update README.md `fish-lsp env` output
fix: lints for `1.1.1-pre.5` chore: update deps - bumped `[email protected]`
788f003 to
f1b3c92
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
nightly release
1.1.1-pre.5changesLspDocument, but now parameterizedTextDocumentswith ourLspDocumentwrapper.src/server.tsdocuments.onDidOpen(async ({ document: LspDocument }) => {})documents.onDidChangeContent(({ document }) => {})documents.onDidClose(({ document }) => {})Diagnosticsupport improved significantlyDiagnosticserver handler performance by sending analysis to background eventfish_lsp_max_diagnosticssupport added toDiagnostichandler"command not found" 7001diagnostic supportset -gx fish_lsp_disabled_handlers diagnosticwill completely disable the server from calculatingDiagnostic[]entries that would be sent ondocuments.onDidChangeContent1.1.1-pre.5Links
npmgithubInstall