Skip to content

Commit

Permalink
Build and eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexr00 committed Dec 28, 2021
1 parent ec9307f commit 96189e4
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
18 changes: 14 additions & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,9 @@
"vscode-oniguruma",
"iconv-lite-umd",
"tas-client-umd",
"jschardet"
"jschardet",
"dayjs",
"dayjs/plugin/*"
]
},
{
Expand Down Expand Up @@ -599,6 +601,8 @@
"vscode-oniguruma",
"iconv-lite-umd",
"jschardet",
"dayjs",
"dayjs/plugin/*",
"@vscode/vscode-languagedetection",
"@microsoft/applicationinsights-web"
]
Expand Down Expand Up @@ -632,7 +636,9 @@
"vscode-textmate",
"vscode-oniguruma",
"iconv-lite-umd",
"jschardet"
"jschardet",
"dayjs",
"dayjs/plugin/*"
]
},
{
Expand Down Expand Up @@ -752,7 +758,9 @@
"vscode-textmate",
"vscode-oniguruma",
"iconv-lite-umd",
"jschardet"
"jschardet",
"dayjs",
"dayjs/plugin/*"
]
},
{
Expand Down Expand Up @@ -787,7 +795,9 @@
"vscode-textmate",
"vscode-oniguruma",
"iconv-lite-umd",
"jschardet"
"jschardet",
"dayjs",
"dayjs/plugin/*"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions remote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"@vscode/vscode-languagedetection": "1.0.21",
"applicationinsights": "1.4.2",
"cookie": "^0.4.0",
"dayjs": "^1.10.7",
"graceful-fs": "4.2.8",
"http-proxy-agent": "^2.1.0",
"https-proxy-agent": "^2.2.3",
Expand Down
6 changes: 5 additions & 1 deletion src/bootstrap-window.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,11 @@
'iconv-lite-umd': `${baseNodeModulesPath}/iconv-lite-umd/lib/iconv-lite-umd.js`,
'jschardet': `${baseNodeModulesPath}/jschardet/dist/jschardet.min.js`,
'@vscode/vscode-languagedetection': `${baseNodeModulesPath}/@vscode/vscode-languagedetection/dist/lib/index.js`,
'tas-client-umd': `${baseNodeModulesPath}/tas-client-umd/lib/tas-client-umd.js`
'tas-client-umd': `${baseNodeModulesPath}/tas-client-umd/lib/tas-client-umd.js`,
'dayjs': `${baseNodeModulesPath}/dayjs/dayjs.min.js`,
'dayjs/plugin/relativeTime': `${baseNodeModulesPath}/dayjs/plugin/relativeTime.js`,
'dayjs/plugin/updateLocale': `${baseNodeModulesPath}/dayjs/plugin/updateLocale.js`,
'dayjs/plugin/localizedFormat': `${baseNodeModulesPath}/dayjs/plugin/localizedFormat.js`
};

// Allow to load built-in and other node.js modules via AMD
Expand Down
2 changes: 1 addition & 1 deletion src/vs/workbench/contrib/comments/browser/timestamp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Timestamp } from 'vs/editor/common/modes';
import * as dayjs from 'dayjs';
import * as relativeTime from 'dayjs/plugin/relativeTime';
import * as updateLocale from 'dayjs/plugin/updateLocale';
import * as localizedFormat from 'dayjs/plugin/localizedFormat'
import * as localizedFormat from 'dayjs/plugin/localizedFormat';

dayjs.extend(relativeTime, {
thresholds: [
Expand Down

0 comments on commit 96189e4

Please sign in to comment.