NEORIS-ZDEVOPS / DS-Editor

VS Code Extensions - DS Editor. An integrated Data-Set Editor for Visual Studio Code.
Apache License 2.0
1 stars 0 forks source link

Using a hardcoded working folder .vscode in the extension? #5

Open FALLAI-Denis opened 6 hours ago

FALLAI-Denis commented 6 hours ago

Hi,

The extension uses a subfolder in the .vscode folder of the user folder:

image

This path appears to be hardcoded into the extension as it is not the path we use in our VS Code installation.

image

image

Thanks.

antonkc commented 6 hours ago

That segment is in fact hard-coded. I haven't seen a variable to obtain the path to the set-up directory. I will check again to solve this problem.

FALLAI-Denis commented 6 hours ago

Hi @antonkc,

export async function activate(context: vscode.ExtensionContext) {
    // Extension path
    let extensionPath = context.extensionPath;

https://code.visualstudio.com/api/references/vscode-api#extensions https://code.visualstudio.com/api/references/vscode-api#Extension<T>

Regards,