-
Notifications
You must be signed in to change notification settings - Fork 1.8k
KBABANKñETWORK Online YOUÜ*83 84\Ñetwotrk AR3RT. #3138
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: dependabot/npm_and_yarn/ejs-3.1.7
Are you sure you want to change the base?
Changes from all commits
1730f6b
ac31be3
8202218
f8b4cbc
3d58e75
e938eb7
4815ade
6784a6a
b8daa1b
2c237d1
5288abe
dfc8332
83baf19
71bc737
f36ba70
03722ff
00c056c
2a9677b
213680a
428e01c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ name: CI | |
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| - master | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [CRITICAL_BUG] Branch name updated from 'main' to 'master' on line 6. Ensure consistency across all workflows and repository settings. |
||
| pull_request: | ||
|
|
||
| jobs: | ||
|
|
@@ -28,6 +28,7 @@ jobs: | |
| if: matrix.os != 'ubuntu-latest' | ||
| with: | ||
| run: npm test | ||
| options: "-screen 0 1600x1200x24" | ||
| - name: Run Tests | ||
| uses: GabrielBB/xvfb-action@v1 | ||
| if: matrix.os == 'ubuntu-latest' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,4 +4,5 @@ _site | |
| Gemfile.lock | ||
| **/*.vsix | ||
| .vscode-test | ||
| .wdio-vscode-service | ||
| .wdio-vscode-service | ||
| *-CHANGELOG.txt | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,6 @@ | ||
| .vscode/** | ||
| .vscode-test/** | ||
| .wdio-vscode-service/** | ||
| out/test/** | ||
| test/** | ||
| src/** | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,10 +53,6 @@ export class Config { | |
| return Config.getSettings<boolean>('NoBrowser'); | ||
| } | ||
|
|
||
| public static get getUseBrowserPreview(): boolean { | ||
| return Config.getSettings<boolean>('useBrowserPreview'); | ||
| } | ||
|
|
||
| public static get getAdvancedBrowserCmdline(): string { | ||
| return Config.getSettings<string>('AdvanceCustomBrowserCmdLine'); | ||
| } | ||
|
|
@@ -121,11 +117,11 @@ export class Config { | |
| return Config.getSettings<string>('file'); | ||
| } | ||
|
|
||
| public static get getMutiRootWorkspaceName(): string { | ||
| public static get getMultiRootWorkspaceName(): string { | ||
| return Config.getSettings<string>('multiRootWorkspaceName'); | ||
| } | ||
|
|
||
| public static setMutiRootWorkspaceName(val: string) { | ||
| public static setMultiRootWorkspaceName(val: string) { | ||
|
Comment on lines
+120
to
+124
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [NITPICK] Renamed getters and setters from 'MutiRoot' to 'MultiRoot' (lines 120 and 124). This fix improves naming clarity; ensure all references are updated. |
||
| return Config.configuration.update('multiRootWorkspaceName', val, false); | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ import * as fs from 'fs'; | |
| import * as path from 'path'; | ||
| import { Config } from './Config'; | ||
|
|
||
| export const SUPPRORTED_EXT: string[] = [ | ||
| export const SUPPORTED_EXT: string[] = [ | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [NITPICK] Corrected the misspelled variable name from 'SUPPRORTED_EXT' to 'SUPPORTED_EXT'. This change improves readability and consistency. |
||
| '.html', '.htm', '.svg' | ||
| ]; | ||
|
|
||
|
|
@@ -65,7 +65,7 @@ export class Helper { | |
| */ | ||
| public static IsSupportedFile(file: string): boolean { | ||
| let ext = path.extname(file) || (file.startsWith('.') ? file : `.${file}`); | ||
| return SUPPRORTED_EXT.indexOf(ext.toLowerCase()) > -1; | ||
| return SUPPORTED_EXT.indexOf(ext.toLowerCase()) > -1; | ||
| } | ||
|
|
||
|
|
||
|
|
@@ -153,4 +153,4 @@ export class Helper { | |
|
|
||
| return proxy; | ||
| } | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +1,18 @@ | ||
| 'use strict'; | ||
| const liveServer = require('live-server'); | ||
| const httpShutdown = require('http-shutdown'); | ||
|
|
||
| export class LiveServerHelper { | ||
|
|
||
| static StartServer(params, callback) { | ||
| setTimeout(() => { | ||
| try { | ||
| let ServerInstance = liveServer.start(params); | ||
| let ServerInstance = require('live-server').start(params); | ||
| setTimeout(() => { | ||
|
|
||
| if (!ServerInstance._connectionKey) { | ||
| return callback({}); | ||
| } | ||
|
|
||
| httpShutdown(ServerInstance); | ||
| require('http-shutdown')(ServerInstance); | ||
|
Comment on lines
+8
to
+15
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [PERFORMANCE_OPTIMIZATION] The usage of dynamic require calls (e.g. for 'live-server' and 'http-shutdown') inside functions (lines 8 and 15) may lead to repeated module resolution. Consider moving these require statements to the module scope to benefit from caching. const liveServer = require('live-server');
const httpShutdown = require('http-shutdown');
export class LiveServerHelper {
static StartServer(params, callback) {
setTimeout(() => {
try {
let ServerInstance = liveServer.start(params);
setTimeout(() => {
if (!ServerInstance._connectionKey) {
return callback({});
}
httpShutdown(ServerInstance);
return callback(ServerInstance);
}, 1000);
} catch (err) {
console.error(err);
callback({
errorMsg: err
});
}
}, 0);
}
static StopServer(LiveServerInstance, callback) {
LiveServerInstance.shutdown(() => {
// callback(); /*only Working first time, Unknown Bug*/
});
LiveServerInstance.close();
liveServer.shutdown();
setTimeout(() => { callback(); }, 1000);
}
} |
||
| return callback(ServerInstance); | ||
|
|
||
| }, 1000); | ||
|
|
@@ -34,7 +32,7 @@ export class LiveServerHelper { | |
| // callback(); /*only Working first time, Unknown Bug*/ | ||
| }); | ||
| LiveServerInstance.close(); | ||
| liveServer.shutdown(); | ||
| require('live-server').shutdown(); | ||
| setTimeout(() => { callback(); }, 1000); | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,26 @@ | ||
| import { Memento, extensions, window } from 'vscode'; | ||
| import * as opn from 'opn'; | ||
|
|
||
| export const SETUP_STRING = 'liveServer.setup.version'; | ||
|
|
||
| export async function checkNewAnnouncement(memento: Memento) { | ||
|
|
||
| const packageJSON = extensions.getExtension('ritwickdey.LiveServer').packageJSON; | ||
| const announment = packageJSON.announcement; | ||
| const announcement = packageJSON.announcement; | ||
|
|
||
| if (!announment && Object.keys(announment).length === 0) return; | ||
| if (!announcement && Object.keys(announcement).length === 0) return; | ||
|
Comment on lines
+8
to
+10
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [NITPICK] Corrected variable name from 'announment' to 'announcement' and updated its usage (lines 8-10). Confirm that the 'opn' package is still supported or consider using its modern alternative if available. |
||
|
|
||
| const stateVersion = await memento.get(SETUP_STRING) || '0.0.0'; | ||
| const installedVersion = packageJSON.version; | ||
|
|
||
| if (stateVersion !== installedVersion && installedVersion === announment.onVersion) { | ||
| if (stateVersion !== installedVersion && installedVersion === announcement.onVersion) { | ||
| await memento.update(SETUP_STRING, installedVersion); | ||
| const showDetails = 'Show Details'; | ||
| const choice = await window.showInformationMessage(announment.message, showDetails); | ||
| const choice = await window.showInformationMessage(announcement.message, showDetails); | ||
| if (choice === showDetails) { | ||
| const url = announment.url || 'https://github.com/ritwickdey/vscode-live-server'; | ||
| opn(url); | ||
| const url = announcement.url || 'https://github.com/ritwickdey/vscode-live-server'; | ||
| require('opn')(url); | ||
| } | ||
|
|
||
| } | ||
|
|
||
| } | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[CRITICAL_BUG] Changed branch name in 'git push' (line 126) from 'main' to 'master'. Verify that this matches the repository's default branch to avoid deployment issues.