Skip to content
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

[Feature Request]: Automatic platform detection. (VSC-1580) #1416

Open
SinglWolf opened this issue Jan 30, 2025 · 0 comments
Open

[Feature Request]: Automatic platform detection. (VSC-1580) #1416

SinglWolf opened this issue Jan 30, 2025 · 0 comments
Labels
Feature / Enhancement Request Request for Feature/ Enhancement

Comments

@SinglWolf
Copy link

SinglWolf commented Jan 30, 2025

Greetings!
There are a lot of similar lines in the vscode-esp-idf-extension settings that confuse beginners and greatly annoy more experienced users (e.g., me)
Image
Image
Image

Using the example of typescript, I propose a solution to the problem with different delimiters in the path, depending on the platform on which vscode-esp-idf-extension is running.

import * as os from 'os';

const platform = os.platform();

if ((platform === "linux") || (platform === "darwin")){
    // linux or OS X
   // e.g.
    SLASH = '/';
}else if (platform === "win32"){
    // Windows...
   // e.g.
    SLASH = '\\';
}

This will allow to show only the necessary elements in the vscode-esp-idf-extension settings.

@SinglWolf SinglWolf added the Feature / Enhancement Request Request for Feature/ Enhancement label Jan 30, 2025
@github-actions github-actions bot changed the title [Feature Request]: Automatic platform detection. [Feature Request]: Automatic platform detection. (VSC-1580) Jan 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature / Enhancement Request Request for Feature/ Enhancement
Projects
None yet
Development

No branches or pull requests

1 participant