-
-
Notifications
You must be signed in to change notification settings - Fork 719
feat(editor): Workspace Mode #15008
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
feat(editor): Workspace Mode #15008
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
2b4068c to
e5ffb8d
Compare
e5ffb8d to
866e578
Compare
|
hello 👋 Sadly to support this spec, we need to support |
- Introduced `workspaceMode` option in the configuration to enable linting across all files in the workspace. - Updated `Options` struct to include `supported_extensions` for file type filtering. - Enhanced `lint_workspace` method to handle multiple file types based on supported extensions. - Implemented source file watchers for workspace mode to monitor changes in relevant files. - Updated VSCode extension to support new configuration options and handle workspace mode changes. - Added logging capabilities to forward log messages to the LSP client for better visibility. - Refactored `TsGoLintState` to support batch linting of multiple paths and return diagnostics grouped by file. - Improved error handling and diagnostics reporting in the linter service.
dbef6fe to
9907d59
Compare
I agree, if there is a spec for it in the LSP, we should follow it. @Sysix do you want me to merge the tsgolint in memory diagnostic side? |
|
@camc314 yes we can merge both PRs. Had finally time to install "go" to my WSL2 setup and test it :) |
…hange_configuration
Ah! It didn't even occur to me that the LSP spec accomodated for this. The description in #11447 helps big time. It looks like you guys just got oxc-project/tsgolint#291 merged to support this which should unblock and allow us to merge #14733 @Sysix do you want to re-open and rebase #11447 and #11414 once that is done or would you prefer I integrate those changes into this PR? |
I would prefer to rebase the PR's. Created the PR #15166 so the code path are similar to the outdated PR's :) |
|
On it :) |
workspace_modeoption inLintOptionsto enable workspace-wide linting.ServerLinterto handle workspace mode, suppressing per-file tsgo linting.lint_workspacemethod inWorkspaceWorkerfor batch linting of all files.TsgoLinterfor batch linting.log_bridgeto forward log messages to the LSP client.workspaceModesetting.Optionsstruct to supportsupported_extensionsfor linting.