add gotoLineMode to IOpenSettings

This commit is contained in:
Martin Aeschlimann
2019-07-18 16:56:08 +02:00
parent 034e0a9f99
commit 6163b86243
8 changed files with 18 additions and 10 deletions
+1 -2
View File
@@ -844,8 +844,7 @@ export class WindowsManager extends Disposable implements IWindowsMainService {
private doExtractPathsFromAPI(openConfig: IOpenConfiguration): IPathToOpen[] {
const pathsToOpen: IPathToOpen[] = [];
const cli = openConfig.cli;
const parseOptions: IPathParseOptions = { gotoLineMode: cli && cli.goto };
const parseOptions: IPathParseOptions = { gotoLineMode: openConfig.gotoLineMode };
for (const pathToOpen of openConfig.urisToOpen || []) {
if (!pathToOpen) {
continue;