Coding standard to match with previous rulesets

This commit is contained in:
Shiva Poudel 2021-06-22 04:19:05 +05:45
parent de9a81baca
commit c0ccc14d72
11 changed files with 205 additions and 201 deletions

View File

@ -8,4 +8,8 @@ charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab
indent_style = space
indent_size = 2
[*.{txt,md}]
trim_trailing_whitespace = false

View File

@ -1,7 +1,7 @@
MIT License
Copyright (c) 2020 Claudio Santos, Shiva Poudel and Richard Lam
(MIT) Copyright (c) 2020 Philipp Kief (VSCode Material Icon Theme)
Copyright (c) 2021 Claudio Santos, Shiva Poudel and Richard Lam
(MIT) Copyright (c) 2021 Philipp Kief (VSCode Material Icon Theme)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal

View File

@ -33,8 +33,8 @@ function copySrc() {
// Copy extension icon.
const copyExtensionLogos = fs.copy(
path.resolve(srcPath, "extensionIcons"),
path.resolve(distPath, "icons")
path.resolve(srcPath, 'extensionIcons'),
path.resolve(distPath, 'icons')
);
// Bundle the main script.

View File

@ -29,8 +29,8 @@ observe(iconSelector, {
*/
function replaceIcon(fileRow, iconMap) {
// get file/folder name.
const fileName = fileRow.querySelector('[role=rowheader]')?.firstElementChild?.firstElementChild
?.innerText;
const fileName =
fileRow.querySelector('[role=rowheader]')?.firstElementChild?.firstElementChild?.innerText;
if (!fileName) return; // fileName couldn't be found or we don't have a match for it.
// svg to be replaced.