mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-04 07:15:54 +01:00
support goto for file uris arguments
This commit is contained in:
@@ -1017,6 +1017,14 @@ export class WindowsManager implements IWindowsMainService {
|
||||
return this.parsePath(uri.fsPath, options);
|
||||
}
|
||||
if (isFile) {
|
||||
if (options && options.gotoLineMode) {
|
||||
const parsedPath = parseLineAndColumnAware(uri.path);
|
||||
return {
|
||||
fileUri: uri.with({ path: parsedPath.path }),
|
||||
lineNumber: parsedPath.line,
|
||||
columnNumber: parsedPath.column
|
||||
};
|
||||
}
|
||||
return {
|
||||
fileUri: uri
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user