Fix windows support, fix other bugs
[?]
Feb 26, 2021, 9:33 AM
HVLXWD6AJ2ACJJJRBDL36OFIXWQ7VA3PEUEQJGRKXJFSJ2JORKSACDependencies
- [2]
HF3NERPZAdd cache for changes and add change dependencies to log - [3]
Q5X2TMMIAutomatically detect Pijul executable under .cargo directory - [4]
WW67NYZVConfigure eslint for JS standard formatting - [5]
NCBEWRYEInitialize Repository - [6]
WHFIIX4YImprove documentation and add Pijul installation configuration - [7]
TKKT6D4CAdd failure loop to installation selection - [8]
B4SKYP3YAdd repository model and add steps to initialize it - [9]
GNQD74OZAdd pijul.openChange command and text document provider for pijul-change scheme - [*]
ZGMIJNFVCreate pijul.ts for executing commands using the Pijul CLI - [*]
ILH3GIVTAdd command centre and refresh/init commands
Change contents
- edit in src/pijul.ts at line 69
// If on Windows, need to remove starting forward slash provided in the CWD by vscodeif (process.platform === 'win32' && cwd) {const driveLetterRegExp = new RegExp('[A-Za-z]:');if (cwd.charAt(0) === '/' && driveLetterRegExp.test(cwd.substr(1, 2))) {cwd = cwd.substr(1);}} - replacement in src/pijul.ts at line 210
return (await this._pijul.exec(this.repositoryRoot, ['reset', uri.path, '--dry-run'], { cancellationToken: token })).stdout;return (await this._pijul.exec(this.repositoryRoot, ['reset', uri.fsPath, '--dry-run'], { cancellationToken: token })).stdout; - edit in src/pijul.ts at line 656
- replacement in src/pijul.ts at line 663
throw new Error('Failed to parse author string: ' + authorString);// Blank author field, just return blank stringsreturn new PijulChangeAuthor('<NO AUTHOR>', '', ''); - replacement in src/extension.ts at line 26
// First, check if Pijul can be found in the .cargo directory// First, check if Pijul is on $PATH.path = 'pijul'; - replacement in src/extension.ts at line 29
path = await searchPijulCargoDirectory(outputChannel);if (path) {return await checkPijulExecutable(path);if (process.platform === 'win32') {path += '.exe';}return await checkPijulExecutable(path);} catch (e) {// If not found, check if Pijul can be found in the .cargo directorytry {path = await searchPijulCargoDirectory(outputChannel);if (path) {return await checkPijulExecutable(path);}} catch (_) {path = undefined; - edit in src/extension.ts at line 43
} catch (_) {path = undefined; - edit in package.json at line 17[12.4203][12.4203]
"workspaceContains:.pijul", - replacement in build/node-extension.webpack.config.js at line 1
//@ts-check// @ts-check - replacement in build/node-extension.webpack.config.js at line 7
/**@type {import('webpack').Configuration}*//** @type {import('webpack').Configuration} */ - replacement in build/node-extension.webpack.config.js at line 10
mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production')mode: 'none', // this leaves the source code as close as possible to the original (when packaging we set this to 'production') - replacement in build/node-extension.webpack.config.js at line 41
module.exports = config;[4.110979]module.exports = config; - replacement in .vscode/tasks.json at line 9
"problemMatcher": ["$ts-webpack-watch","$tslint-webpack-watch"],"problemMatcher": {"owner": "typescript","fileLocation": "relative","background": {"activeOnStart": true,"beginsPattern": "webpack --watch --config .*$","endsPattern": "webpack [\\.\\d]+ compiled successfully in \\d+ ms"},"pattern": [{"regexp": "ERROR in ([^\\(]*)\\((\\d+),(\\d+)\\):","file": 1,"line": 2,"column": 3},{"regexp": "([A-Za-z0-9-]+):(.*)","message": 2,"code": 1}]}, - replacement in .vscode/launch.json at line 10
"type": "extensionHost","type": "pwa-extensionHost", - edit in .vscode/launch.json at line 18
"sourceMaps": true,