Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion editors/vscode/client/ConfigService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class ConfigService implements IDisposable {

if (!path.isAbsolute(bin)) {
// if the path is not absolute, resolve it to the first workspace folder
let cwd = this.workspaceConfigs.keys().next().value;
const cwd = this.workspaceConfigs.keys().next().value;
if (!cwd) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion editors/vscode/client/tools/linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default class LinterTool implements ToolInterface {
// If the extension is launched in debug mode then the debug server options are used
// Otherwise the run options are used
// Options to control the language client
let clientOptions: LanguageClientOptions = {
const clientOptions: LanguageClientOptions = {
// Register the server for plain text documents
documentSelector: [
{
Expand Down
4 changes: 2 additions & 2 deletions editors/vscode/tests/ConfigService.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ suite('ConfigService', () => {
await conf.update('path.server', './relative/oxc_language_server');
const relativeServerPath = service.getUserServerBinPath();

let workspace_path = getWorkspaceFolderPlatformSafe();
const workspace_path = getWorkspaceFolderPlatformSafe();
strictEqual(relativeServerPath, `${workspace_path}/relative/oxc_language_server`);
});

Expand All @@ -63,7 +63,7 @@ suite('ConfigService', () => {
const service = new ConfigService();
await conf.update('path.server', './relative/oxc_language_server');
const relativeServerPath = service.getUserServerBinPath();
let workspace_path = getWorkspaceFolderPlatformSafe();
const workspace_path = getWorkspaceFolderPlatformSafe();

strictEqual(workspace_path[1], ':', 'The test workspace folder must be an absolute path with a drive letter on Windows');
strictEqual(relativeServerPath, `${workspace_path}\\relative\\oxc_language_server`);
Expand Down
8 changes: 4 additions & 4 deletions editors/vscode/tests/code_actions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ suite('code actions', () => {

// https://github.com/oxc-project/oxc/issues/10422
test('code action `source.fixAll.oxc` on editor.codeActionsOnSave', async () => {
let file = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'file.js');
let expectedFile = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'expected.txt');
const file = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'file.js');
const expectedFile = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'expected.txt');

await workspace.getConfiguration('editor').update('codeActionsOnSave', {
'source.fixAll.oxc': 'always',
Expand Down Expand Up @@ -112,8 +112,8 @@ suite('code actions', () => {

// https://discord.com/channels/1079625926024900739/1080723403595591700/1422191300395929620
test('code action `source.fixAll.oxc` ignores "ignore this rule for this line/file"', async () => {
let file = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'file2.js');
let expectedFile = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'expected.txt');
const file = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'file2.js');
const expectedFile = Uri.joinPath(fixturesWorkspaceUri(), 'fixtures', 'expected.txt');

await workspace.getConfiguration('editor').update('codeActionsOnSave', {
'source.fixAll.oxc': 'always',
Expand Down
Loading