Skip to content

Add uri parameter to command vaporview.loadViewerSettings #190

Description

@hans-hunter60

Hello!

It would be great if a settingsUri parameter is added to the command vaporview.loadViewerSettings (or vaporview.openFile), so I can load a settings file without user interaction. Something like this:

  context.subscriptions.push(vscode.commands.registerCommand('vaporview.loadViewerSettings', (e : LoadSettingsArgs) => {
    if (e.uri && e.settingsUri) {
        const document = viewerProvider.getDocumentFromOptionalUri(e.uri);
        viewerProvider.loadSettingsFromFileUri(document, e.settingsUri);
    } else {
        viewerProvider.loadSettingsFromFile();
    }
  }));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions