mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 12:19:15 +00:00
fix(editors/vscode): temporarily solve oxc_language_server issue on windows (#6384)
closes #6382 It seems we cannot support `oxc_language_server` by directly reusing code from `coc-oxc`, at least not on Windows, because it requires an `.exe` executable. I will take some time to study the implementation of `Biome` to enhance our vscode plugin.
This commit is contained in:
parent
eacde0553e
commit
b9c94bbc44
1 changed files with 4 additions and 2 deletions
|
|
@ -104,7 +104,9 @@ export async function activate(context: ExtensionContext) {
|
|||
}
|
||||
|
||||
const workspaceFolders = workspace.workspaceFolders;
|
||||
if (workspaceFolders) {
|
||||
const isWindows = process.platform === 'win32';
|
||||
|
||||
if (workspaceFolders?.length && !isWindows) {
|
||||
try {
|
||||
return await Promise.any(
|
||||
workspaceFolders.map(async (folder) => {
|
||||
|
|
@ -122,7 +124,7 @@ export async function activate(context: ExtensionContext) {
|
|||
} catch {}
|
||||
}
|
||||
|
||||
const ext = process.platform === 'win32' ? '.exe' : '';
|
||||
const ext = isWindows ? '.exe' : '';
|
||||
// NOTE: The `./target/release` path is aligned with the path defined in .github/workflows/release_vscode.yml
|
||||
return (
|
||||
process.env.SERVER_PATH_DEV ??
|
||||
|
|
|
|||
Loading…
Reference in a new issue