Skip to content

Commit

Permalink
Allow bypassing typechecker (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinistock authored Jan 3, 2024
1 parent 38b70ff commit fe89bf9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@
"description": "This is a temporary setting for testing purposes, do not use it! Replace the custom bundle logic by bundler-compose.",
"type": "boolean",
"default": false
},
"rubyLsp.bypassTypechecker": {
"description": "Ignores if the project uses a typechecker. Only intended to be used while working on the Ruby LSP itself",
"type": "boolean",
"default": false
}
}
},
Expand Down
5 changes: 4 additions & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ function getLspExecutables(
const branch: string = config.get("branch")!;
const customBundleGemfile: string = config.get("bundleGemfile")!;
const useBundlerCompose: boolean = config.get("useBundlerCompose")!;
const bypassTypechecker: boolean = config.get("bypassTypechecker")!;

const executableOptions: ExecutableOptions = {
cwd: workspaceFolder.uri.fsPath,
env,
env: bypassTypechecker
? { ...env, RUBY_LSP_BYPASS_TYPECHECKER: "true" }
: env,
shell: true,
};

Expand Down

0 comments on commit fe89bf9

Please sign in to comment.