Best JavaScript code snippet using argos
gettingStartedContent.ts
Source:gettingStartedContent.ts
1/*---------------------------------------------------------------------------------------------2 * Copyright (c) Microsoft Corporation. All rights reserved.3 * Licensed under the MIT License. See License.txt in the project root for license information.4 *--------------------------------------------------------------------------------------------*/5import 'vs/workbench/contrib/welcomeGettingStarted/common/media/theme_picker';6import 'vs/workbench/contrib/welcomeGettingStarted/common/media/notebookProfile';7import { localize } from 'vs/nls';8import { Codicon } from 'vs/base/common/codicons';9import { ThemeIcon } from 'vs/platform/theme/common/themeService';10import { registerIcon } from 'vs/platform/theme/common/iconRegistry';11import { NotebookSetting } from 'vs/workbench/contrib/notebook/common/notebookCommon';12const setupIcon = registerIcon('getting-started-setup', Codicon.zap, localize('getting-started-setup-icon', "Icon used for the setup category of welcome page"));13const beginnerIcon = registerIcon('getting-started-beginner', Codicon.lightbulb, localize('getting-started-beginner-icon', "Icon used for the beginner category of welcome page"));14const intermediateIcon = registerIcon('getting-started-intermediate', Codicon.mortarBoard, localize('getting-started-intermediate-icon', "Icon used for the intermediate category of welcome page"));15export type BuiltinGettingStartedStep = {16 id: string;17 title: string;18 description: string;19 completionEvents?: string[];20 when?: string;21 media:22 | { type: 'image'; path: string | { hc: string; hcLight?: string; light: string; dark: string }; altText: string }23 | { type: 'svg'; path: string; altText: string }24 | { type: 'markdown'; path: string };25};26export type BuiltinGettingStartedCategory = {27 id: string;28 title: string;29 description: string;30 isFeatured: boolean;31 next?: string;32 icon: ThemeIcon;33 when?: string;34 content:35 | { type: 'steps'; steps: BuiltinGettingStartedStep[] };36};37export type BuiltinGettingStartedStartEntry = {38 id: string;39 title: string;40 description: string;41 icon: ThemeIcon;42 when?: string;43 content:44 | { type: 'startEntry'; command: string };45};46type GettingStartedWalkthroughContent = BuiltinGettingStartedCategory[];47type GettingStartedStartEntryContent = BuiltinGettingStartedStartEntry[];48export const startEntries: GettingStartedStartEntryContent = [49 {50 id: 'welcome.showNewFileEntries',51 title: localize('gettingStarted.newFile.title', "New File..."),52 description: localize('gettingStarted.newFile.description', "Open a new untitled file, notebook, or custom editor."),53 icon: Codicon.newFile,54 content: {55 type: 'startEntry',56 command: 'command:welcome.showNewFileEntries',57 }58 },59 // {60 // id: 'welcome.showNewFolderEntries',61 // title: localize('gettingStarted.newFolder.title', "New Folder..."),62 // description: localize('gettingStarted.newFolder.description', "Create a folder from a Git repo or an extension contributed template folder"),63 // icon: Codicon.newFolder,64 // content: {65 // type: 'startEntry',66 // command: 'welcome.showNewFolderEntries',67 // }68 // },69 {70 id: 'topLevelOpenMac',71 title: localize('gettingStarted.openMac.title', "Open..."),72 description: localize('gettingStarted.openMac.description', "Open a file or folder to start working"),73 icon: Codicon.folderOpened,74 when: '!isWeb && isMac',75 content: {76 type: 'startEntry',77 command: 'command:workbench.action.files.openFileFolder',78 }79 },80 {81 id: 'topLevelOpenFile',82 title: localize('gettingStarted.openFile.title', "Open File..."),83 description: localize('gettingStarted.openFile.description', "Open a file to start working"),84 icon: Codicon.goToFile,85 when: 'isWeb || !isMac',86 content: {87 type: 'startEntry',88 command: 'command:workbench.action.files.openFile',89 }90 },91 {92 id: 'topLevelOpenFolder',93 title: localize('gettingStarted.openFolder.title', "Open Folder..."),94 description: localize('gettingStarted.openFolder.description', "Open a folder to start working"),95 icon: Codicon.folderOpened,96 when: '!isWeb && !isMac',97 content: {98 type: 'startEntry',99 command: 'command:workbench.action.files.openFolder',100 }101 },102 {103 id: 'topLevelOpenFolderWeb',104 title: localize('gettingStarted.openFolder.title', "Open Folder..."),105 description: localize('gettingStarted.openFolder.description', "Open a folder to start working"),106 icon: Codicon.folderOpened,107 when: '!openFolderWorkspaceSupport && workbenchState == \'workspace\'',108 content: {109 type: 'startEntry',110 command: 'command:workbench.action.files.openFolderViaWorkspace',111 }112 },113 {114 id: 'topLevelGitClone',115 title: localize('gettingStarted.topLevelGitClone.title', "Clone Git Repository..."),116 description: localize('gettingStarted.topLevelGitClone.description', "Clone a remote repository to a local folder"),117 when: 'config.git.enabled && !git.missing',118 icon: Codicon.sourceControl,119 content: {120 type: 'startEntry',121 command: 'command:git.clone',122 }123 },124 {125 id: 'topLevelGitOpen',126 title: localize('gettingStarted.topLevelGitOpen.title', "Open Repository..."),127 description: localize('gettingStarted.topLevelGitOpen.description', "Connect to a remote repository or pull request to browse, search, edit, and commit"),128 when: 'workspacePlatform == \'webworker\'',129 icon: Codicon.sourceControl,130 content: {131 type: 'startEntry',132 command: 'command:remoteHub.openRepository',133 }134 },135 {136 id: 'topLevelShowWalkthroughs',137 title: localize('gettingStarted.topLevelShowWalkthroughs.title', "Open a Walkthrough..."),138 description: localize('gettingStarted.topLevelShowWalkthroughs.description', "View a walkthrough on the editor or an extension"),139 icon: Codicon.checklist,140 when: 'allWalkthroughsHidden',141 content: {142 type: 'startEntry',143 command: 'command:welcome.showAllWalkthroughs',144 }145 },146 {147 id: 'topLevelVideoTutorials',148 title: localize('gettingStarted.topLevelVideoTutorials.title', "Watch Video Tutorials"),149 description: localize('gettingStarted.topLevelVideoTutorials.description', "Watch our series of short & practical video tutorials for VS Code's key features."),150 icon: Codicon.playCircle,151 when: 'config.workbench.welcomePage.experimental.videoTutorials == on',152 content: {153 type: 'startEntry',154 command: 'https://aka.ms/vscode-getting-started-video',155 }156 },157 {158 id: 'topLevelVideoTutorialsExperimental',159 title: localize('gettingStarted.topLevelVideoTutorials.title', "Watch Video Tutorials"),160 description: localize('gettingStarted.topLevelVideoTutorials.description', "Watch our series of short & practical video tutorials for VS Code's key features."),161 when: 'config.workbench.welcomePage.experimental.videoTutorials == experimental',162 icon: Codicon.playCircle,163 content: {164 type: 'startEntry',165 command: 'https://aka.ms/vscode-videos',166 }167 },168];169const Button = (title: string, href: string) => `[${title}](${href})`;170export const walkthroughs: GettingStartedWalkthroughContent = [171 {172 id: 'Setup',173 title: localize('gettingStarted.setup.title', "Get Started with VS Code"),174 description: localize('gettingStarted.setup.description', "Discover the best customizations to make VS Code yours."),175 isFeatured: true,176 icon: setupIcon,177 when: '!isWeb',178 next: 'Beginner',179 content: {180 type: 'steps',181 steps: [182 {183 id: 'pickColorTheme',184 title: localize('gettingStarted.pickColor.title', "Choose the look you want"),185 description: localize('gettingStarted.pickColor.description.interpolated', "The right color palette helps you focus on your code, is easy on your eyes, and is simply more fun to use.\n{0}", Button(localize('titleID', "Browse Color Themes"), 'command:workbench.action.selectTheme')),186 completionEvents: [187 'onSettingChanged:workbench.colorTheme',188 'onCommand:workbench.action.selectTheme'189 ],190 media: { type: 'markdown', path: 'theme_picker', }191 },192 {193 id: 'settingsSync',194 title: localize('gettingStarted.settingsSync.title', "Sync to and from other devices"),195 description: localize('gettingStarted.settingsSync.description.interpolated', "Keep your essential VS Code customizations backed up and updated across all your devices.\n{0}", Button(localize('enableSync', "Enable Settings Sync"), 'command:workbench.userDataSync.actions.turnOn')),196 when: 'syncStatus != uninitialized',197 completionEvents: ['onEvent:sync-enabled'],198 media: {199 type: 'svg', altText: 'The "Turn on Sync" entry in the settings gear menu.', path: 'settingsSync.svg'200 },201 },202 {203 id: 'commandPaletteTask',204 title: localize('gettingStarted.commandPalette.title', "One shortcut to access everything"),205 description: localize('gettingStarted.commandPalette.description.interpolated', "Commands are the keyboard way to accomplish any task in VS Code. **Practice** by looking up your frequent ones to save time.\n{0}\n__Try searching for 'view toggle'.__", Button(localize('commandPalette', "Open Command Palette"), 'command:workbench.action.showCommands')),206 media: { type: 'svg', altText: 'Command Palette overlay for searching and executing commands.', path: 'commandPalette.svg' },207 },208 {209 id: 'extensionsWeb',210 title: localize('gettingStarted.extensions.title', "Limitless extensibility"),211 description: localize('gettingStarted.extensionsWeb.description.interpolated', "Extensions are VS Code's power-ups. A growing number are becoming available in the web.\n{0}", Button(localize('browsePopular', "Browse Popular Web Extensions"), 'command:workbench.extensions.action.showPopularExtensions')),212 when: 'workspacePlatform == \'webworker\'',213 media: {214 type: 'svg', altText: 'VS Code extension marketplace with featured language extensions', path: 'extensions-web.svg'215 },216 },217 {218 id: 'findLanguageExtensions',219 title: localize('gettingStarted.findLanguageExts.title', "Rich support for all your languages"),220 description: localize('gettingStarted.findLanguageExts.description.interpolated', "Code smarter with syntax highlighting, code completion, linting and debugging. While many languages are built-in, many more can be added as extensions.\n{0}", Button(localize('browseLangExts', "Browse Language Extensions"), 'command:workbench.extensions.action.showLanguageExtensions')),221 when: 'workspacePlatform != \'webworker\'',222 media: {223 type: 'svg', altText: 'Language extensions', path: 'languages.svg'224 },225 },226 {227 id: 'pickAFolderTask-Mac',228 title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),229 description: localize('gettingStarted.setup.OpenFolder.description.interpolated', "You're all set to start coding. Open a project folder to get your files into VS Code.\n{0}", Button(localize('pickFolder', "Pick a Folder"), 'command:workbench.action.files.openFileFolder')),230 when: 'isMac && workspaceFolderCount == 0',231 media: {232 type: 'svg', altText: 'Explorer view showing buttons for opening folder and cloning repository.', path: 'openFolder.svg'233 }234 },235 {236 id: 'pickAFolderTask-Other',237 title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),238 description: localize('gettingStarted.setup.OpenFolder.description.interpolated', "You're all set to start coding. Open a project folder to get your files into VS Code.\n{0}", Button(localize('pickFolder', "Pick a Folder"), 'command:workbench.action.files.openFolder')),239 when: '!isMac && workspaceFolderCount == 0',240 media: {241 type: 'svg', altText: 'Explorer view showing buttons for opening folder and cloning repository.', path: 'openFolder.svg'242 }243 },244 {245 id: 'quickOpen',246 title: localize('gettingStarted.quickOpen.title', "Quickly navigate between your files"),247 description: localize('gettingStarted.quickOpen.description.interpolated', "Navigate between files in an instant with one keystroke. Tip: Open multiple files by pressing the right arrow key.\n{0}", Button(localize('quickOpen', "Quick Open a File"), 'command:toSide:workbench.action.quickOpen')),248 when: 'workspaceFolderCount != 0',249 media: {250 type: 'svg', altText: 'Go to file in quick search.', path: 'search.svg'251 }252 }253 ]254 }255 },256 {257 id: 'SetupWeb',258 title: localize('gettingStarted.setupWeb.title', "Get Started with VS Code in the Web"),259 description: localize('gettingStarted.setupWeb.description', "Discover the best customizations to make VS Code in the Web yours."),260 isFeatured: true,261 icon: setupIcon,262 when: 'isWeb',263 next: 'Beginner',264 content: {265 type: 'steps',266 steps: [267 {268 id: 'pickColorThemeWeb',269 title: localize('gettingStarted.pickColor.title', "Choose the look you want"),270 description: localize('gettingStarted.pickColor.description.interpolated', "The right color palette helps you focus on your code, is easy on your eyes, and is simply more fun to use.\n{0}", Button(localize('titleID', "Browse Color Themes"), 'command:workbench.action.selectTheme')),271 completionEvents: [272 'onSettingChanged:workbench.colorTheme',273 'onCommand:workbench.action.selectTheme'274 ],275 media: { type: 'markdown', path: 'theme_picker', }276 },277 {278 id: 'settingsSyncWeb',279 title: localize('gettingStarted.settingsSync.title', "Sync to and from other devices"),280 description: localize('gettingStarted.settingsSync.description.interpolated', "Keep your essential VS Code customizations backed up and updated across all your devices.\n{0}", Button(localize('enableSync', "Enable Settings Sync"), 'command:workbench.userDataSync.actions.turnOn')),281 when: 'syncStatus != uninitialized',282 completionEvents: ['onEvent:sync-enabled'],283 media: {284 type: 'svg', altText: 'The "Turn on Sync" entry in the settings gear menu.', path: 'settingsSync.svg'285 },286 },287 {288 id: 'commandPaletteTaskWeb',289 title: localize('gettingStarted.commandPalette.title', "One shortcut to access everything"),290 description: localize('gettingStarted.commandPalette.description.interpolated', "Commands are the keyboard way to accomplish any task in VS Code. **Practice** by looking up your frequent ones to save time.\n{0}\n__Try searching for 'view toggle'.__", Button(localize('commandPalette', "Open Command Palette"), 'command:workbench.action.showCommands')),291 media: { type: 'svg', altText: 'Command Palette overlay for searching and executing commands.', path: 'commandPalette.svg' },292 },293 {294 id: 'menuBarWeb',295 title: localize('gettingStarted.menuBar.title', "Just the right amount of UI"),296 description: localize('gettingStarted.menuBar.description.interpolated', "The full menu bar is available in the dropdown menu to make room for your code. Toggle its apperance for faster access. \n{0}", Button(localize('toggleMenuBar', "Toggle Menu Bar"), 'command:workbench.action.toggleMenuBar')),297 when: 'isWeb',298 media: {299 type: 'svg', altText: 'Comparing menu dropdown with the visible menu bar.', path: 'menuBar.svg'300 },301 },302 {303 id: 'extensionsWebWeb',304 title: localize('gettingStarted.extensions.title', "Limitless extensibility"),305 description: localize('gettingStarted.extensionsWeb.description.interpolated', "Extensions are VS Code's power-ups. A growing number are becoming available in the web.\n{0}", Button(localize('browsePopular', "Browse Popular Web Extensions"), 'command:workbench.extensions.action.showPopularExtensions')),306 when: 'workspacePlatform == \'webworker\'',307 media: {308 type: 'svg', altText: 'VS Code extension marketplace with featured language extensions', path: 'extensions-web.svg'309 },310 },311 {312 id: 'findLanguageExtensionsWeb',313 title: localize('gettingStarted.findLanguageExts.title', "Rich support for all your languages"),314 description: localize('gettingStarted.findLanguageExts.description.interpolated', "Code smarter with syntax highlighting, code completion, linting and debugging. While many languages are built-in, many more can be added as extensions.\n{0}", Button(localize('browseLangExts', "Browse Language Extensions"), 'command:workbench.extensions.action.showLanguageExtensions')),315 when: 'workspacePlatform != \'webworker\'',316 media: {317 type: 'svg', altText: 'Language extensions', path: 'languages.svg'318 },319 },320 {321 id: 'pickAFolderTask-WebWeb',322 title: localize('gettingStarted.setup.OpenFolder.title', "Open up your code"),323 description: localize('gettingStarted.setup.OpenFolderWeb.description.interpolated', "You're all set to start coding. You can open a local project or a remote repository to get your files into VS Code.\n{0}\n{1}", Button(localize('openFolder', "Open Folder"), 'command:workbench.action.addRootFolder'), Button(localize('openRepository', "Open Repository"), 'command:remoteHub.openRepository')),324 when: 'workspaceFolderCount == 0',325 media: {326 type: 'svg', altText: 'Explorer view showing buttons for opening folder and cloning repository.', path: 'openFolder.svg'327 }328 },329 {330 id: 'quickOpenWeb',331 title: localize('gettingStarted.quickOpen.title', "Quickly navigate between your files"),332 description: localize('gettingStarted.quickOpen.description.interpolated', "Navigate between files in an instant with one keystroke. Tip: Open multiple files by pressing the right arrow key.\n{0}", Button(localize('quickOpen', "Quick Open a File"), 'command:toSide:workbench.action.quickOpen')),333 when: 'workspaceFolderCount != 0',334 media: {335 type: 'svg', altText: 'Go to file in quick search.', path: 'search.svg'336 }337 }338 ]339 }340 },341 {342 id: 'Beginner',343 title: localize('gettingStarted.beginner.title', "Learn the Fundamentals"),344 icon: beginnerIcon,345 isFeatured: true,346 next: 'Intermediate',347 description: localize('gettingStarted.beginner.description', "Jump right into VS Code and get an overview of the must-have features."),348 content: {349 type: 'steps',350 steps: [351 {352 id: 'playground',353 title: localize('gettingStarted.playground.title', "Redefine your editing skills"),354 description: localize('gettingStarted.playground.description.interpolated', "Want to code faster and smarter? Practice powerful code editing features in the interactive playground.\n{0}", Button(localize('openEditorPlayground', "Open Editor Playground"), 'command:toSide:workbench.action.showInteractivePlayground')),355 media: {356 type: 'svg', altText: 'Editor Playground.', path: 'interactivePlayground.svg'357 },358 },359 {360 id: 'terminal',361 title: localize('gettingStarted.terminal.title', "Convenient built-in terminal"),362 description: localize('gettingStarted.terminal.description.interpolated', "Quickly run shell commands and monitor build output, right next to your code.\n{0}", Button(localize('showTerminal', "Show Terminal Panel"), 'command:workbench.action.terminal.toggleTerminal')),363 when: 'workspacePlatform != \'webworker\' && remoteName != codespaces && !terminalIsOpen',364 media: {365 type: 'svg', altText: 'Integrated terminal running a few npm commands', path: 'terminal.svg'366 },367 },368 {369 id: 'extensions',370 title: localize('gettingStarted.extensions.title', "Limitless extensibility"),371 description: localize('gettingStarted.extensions.description.interpolated', "Extensions are VS Code's power-ups. They range from handy productivity hacks, expanding out-of-the-box features, to adding completely new capabilities.\n{0}", Button(localize('browseRecommended', "Browse Recommended Extensions"), 'command:workbench.extensions.action.showRecommendedExtensions')),372 when: 'workspacePlatform != \'webworker\'',373 media: {374 type: 'svg', altText: 'VS Code extension marketplace with featured language extensions', path: 'extensions.svg'375 },376 },377 {378 id: 'settings',379 title: localize('gettingStarted.settings.title', "Tune your settings"),380 description: localize('gettingStarted.settings.description.interpolated', "Tweak every aspect of VS Code and your extensions to your liking. Commonly used settings are listed first to get you started.\n{0}", Button(localize('tweakSettings', "Tweak my Settings"), 'command:toSide:workbench.action.openSettings')),381 media: {382 type: 'svg', altText: 'VS Code Settings', path: 'settings.svg'383 },384 },385 {386 id: 'workspaceTrust',387 title: localize('gettingStarted.workspaceTrust.title', "Safely browse and edit code"),388 description: localize('gettingStarted.workspaceTrust.description.interpolated', "{0} lets you decide whether your project folders should **allow or restrict** automatic code execution __(required for extensions, debugging, etc)__.\nOpening a file/folder will prompt to grant trust. You can always {1} later.", Button(localize('workspaceTrust', "Workspace Trust"), 'https://github.com/microsoft/vscode-docs/blob/workspaceTrust/docs/editor/workspace-trust.md'), Button(localize('enableTrust', "enable trust"), 'command:toSide:workbench.action.manageTrustedDomain')),389 when: 'workspacePlatform != \'webworker\' && !isWorkspaceTrusted && workspaceFolderCount == 0',390 media: {391 type: 'svg', altText: 'Workspace Trust editor in Restricted mode and a primary button for switching to Trusted mode.', path: 'workspaceTrust.svg'392 },393 },394 {395 id: 'videoTutorial',396 title: localize('gettingStarted.videoTutorial.title', "Lean back and learn"),397 description: localize('gettingStarted.videoTutorial.description.interpolated', "Watch the first in a series of short & practical video tutorials for VS Code's key features.\n{0}", Button(localize('watch', "Watch Tutorial"), 'https://aka.ms/vscode-getting-started-video')),398 media: { type: 'svg', altText: 'VS Code Settings', path: 'learn.svg' },399 }400 ]401 }402 },403 {404 id: 'Intermediate',405 isFeatured: false,406 title: localize('gettingStarted.intermediate.title', "Boost your Productivity"),407 icon: intermediateIcon,408 description: localize('gettingStarted.intermediate.description', "Optimize your development workflow with these tips & tricks."),409 content: {410 type: 'steps',411 steps: [412 {413 id: 'splitview',414 title: localize('gettingStarted.splitview.title', "Side by side editing"),415 description: localize('gettingStarted.splitview.description.interpolated', "Make the most of your screen estate by opening files side by side, vertically and horizontally.\n{0}", Button(localize('splitEditor', "Split Editor"), 'command:workbench.action.splitEditor')),416 media: {417 type: 'svg', altText: 'Multiple editors in split view.', path: 'sideBySide.svg',418 },419 },420 {421 id: 'debugging',422 title: localize('gettingStarted.debug.title', "Watch your code in action"),423 description: localize('gettingStarted.debug.description.interpolated', "Accelerate your edit, build, test, and debug loop by setting up a launch configuration.\n{0}", Button(localize('runProject', "Run your Project"), 'command:workbench.action.debug.selectandstart')),424 when: 'workspacePlatform != \'webworker\' && workspaceFolderCount != 0',425 media: {426 type: 'svg', altText: 'Run and debug view.', path: 'debug.svg',427 },428 },429 {430 id: 'scmClone',431 title: localize('gettingStarted.scm.title', "Track your code with Git"),432 description: localize('gettingStarted.scmClone.description.interpolated', "Set up the built-in version control for your project to track your changes and collaborate with others.\n{0}", Button(localize('cloneRepo', "Clone Repository"), 'command:git.clone')),433 when: 'config.git.enabled && !git.missing && workspaceFolderCount == 0',434 media: {435 type: 'svg', altText: 'Source Control view.', path: 'git.svg',436 },437 },438 {439 id: 'scmSetup',440 title: localize('gettingStarted.scm.title', "Track your code with Git"),441 description: localize('gettingStarted.scmSetup.description.interpolated', "Set up the built-in version control for your project to track your changes and collaborate with others.\n{0}", Button(localize('initRepo', "Initialize Git Repository"), 'command:git.init')),442 when: 'config.git.enabled && !git.missing && workspaceFolderCount != 0 && gitOpenRepositoryCount == 0',443 media: {444 type: 'svg', altText: 'Source Control view.', path: 'git.svg',445 },446 },447 {448 id: 'scm',449 title: localize('gettingStarted.scm.title', "Track your code with Git"),450 description: localize('gettingStarted.scm.description.interpolated', "No more looking up Git commands! Git and GitHub workflows are seamlessly integrated.\n{0}", Button(localize('openSCM', "Open Source Control"), 'command:workbench.view.scm')),451 when: 'config.git.enabled && !git.missing && workspaceFolderCount != 0 && gitOpenRepositoryCount != 0 && activeViewlet != \'workbench.view.scm\'',452 media: {453 type: 'svg', altText: 'Source Control view.', path: 'git.svg',454 },455 },456 {457 id: 'installGit',458 title: localize('gettingStarted.installGit.title', "Install Git"),459 description: localize('gettingStarted.installGit.description.interpolated', "Install Git to track changes in your projects.\n{0}", Button(localize('installGit', "Install Git"), 'https://aka.ms/vscode-install-git')),460 when: 'git.missing',461 media: {462 type: 'svg', altText: 'Install Git.', path: 'git.svg',463 },464 completionEvents: [465 'onContext:git.state == initialized'466 ]467 },468 {469 id: 'tasks',470 title: localize('gettingStarted.tasks.title', "Automate your project tasks"),471 when: 'workspaceFolderCount != 0 && workspacePlatform != \'webworker\'',472 description: localize('gettingStarted.tasks.description.interpolated', "Create tasks for your common workflows and enjoy the integrated experience of running scripts and automatically checking results.\n{0}", Button(localize('runTasks', "Run Auto-detected Tasks"), 'command:workbench.action.tasks.runTask')),473 media: {474 type: 'svg', altText: 'Task runner.', path: 'runTask.svg',475 },476 },477 {478 id: 'shortcuts',479 title: localize('gettingStarted.shortcuts.title', "Customize your shortcuts"),480 description: localize('gettingStarted.shortcuts.description.interpolated', "Once you have discovered your favorite commands, create custom keyboard shortcuts for instant access.\n{0}", Button(localize('keyboardShortcuts', "Keyboard Shortcuts"), 'command:toSide:workbench.action.openGlobalKeybindings')),481 media: {482 type: 'svg', altText: 'Interactive shortcuts.', path: 'shortcuts.svg',483 }484 }485 ]486 }487 },488 {489 id: 'notebooks',490 title: localize('gettingStarted.notebook.title', "Customize Notebooks"),491 description: '',492 icon: setupIcon,493 isFeatured: false,494 when: `config.${NotebookSetting.openGettingStarted} && userHasOpenedNotebook`,495 content: {496 type: 'steps',497 steps: [498 {499 completionEvents: ['onCommand:notebook.setProfile'],500 id: 'notebookProfile',501 title: localize('gettingStarted.notebookProfile.title', "Select the layout for your notebooks"),502 description: localize('gettingStarted.notebookProfile.description', "Get notebooks to feel just the way you prefer"),503 when: 'userHasOpenedNotebook',504 media: {505 type: 'markdown', path: 'notebookProfile'506 }507 },508 ]509 }510 }...
Using AI Code Generation
1var argosy = require('argosy')2var service = argosy()3service.pipe(argosy.accept({ hello: 'world' })).pipe(service)4service.on('service', function (service) {5 console.log('service registered: ' + JSON.stringify(service))6})7service.on('request', function (request) {8 console.log('request: ' + JSON.stringify(request))9})10service.on('response', function (response) {11 console.log('response: ' + JSON.stringify(response))12})13var argosyPattern = require('argosy-pattern')14var pattern = argosyPattern({15})16service.pipe(pattern).pipe(service)17pattern.on('request', function (request) {18 console.log('request: ' + JSON.stringify(request))19})20pattern.on('response', function (response) {21 console.log('response: ' + JSON.stringify(response))22})23var patternMatcher = require('argosy-pattern-matcher')24var pattern = patternMatcher({25})26service.pipe(pattern).pipe(service)27pattern.on('request', function (request) {28 console.log('request: ' + JSON.stringify(request))29})30pattern.on('response', function (response) {31 console.log('response: ' + JSON.stringify(response))32})33var patternReducer = require('argosy-pattern-reducer')34var pattern = patternReducer({35})36service.pipe(pattern).pipe(service)37pattern.on('request', function (request) {38 console.log('request: ' + JSON.stringify(request))39})40pattern.on('response', function (response) {41 console.log('response: ' + JSON.stringify(response))42})43var serviceFactory = require('argosy-service-factory')44var factory = serviceFactory({45})46service.pipe(factory).pipe(service)47factory.on('request', function (request) {48 console.log('request: ' + JSON.stringify(request))49})50factory.on('response', function (response) {51 console.log('response: ' + JSON.stringify(response))52})
Using AI Code Generation
1var argos = require('argos');2var argosObj = new argos();3argosObj.GettingStarted();4var argos = function() {5 this.GettingStarted = function() {6 console.log("Getting Started");7 }8}9module.exports = argos;
Using AI Code Generation
1var argosy = require('argosy')2var service = argosy()3service.accept({role: 'GettingStarted'})4service.pipe(argosy.patterns({5}, function (message, respond) {6 respond(null, 'Hello, ' + message.name)7}))8service.pipe(process.stdout)9var argosy = require('argosy')10var service = argosy()11service.accept({role: 'GettingStarted'})12service.pipe(argosy.patterns({13}, function (message, respond) {14 respond(null, 'Hello, ' + message.name)15}))16service.pipe(process.stdout)17var argosy = require('argosy')18var service = argosy()19service.accept({role: 'GettingStarted'})20service.pipe(argosy.patterns({21}, function (message, respond) {22 respond(null, 'Hello, ' + message.name)23}))24service.pipe(process.stdout)25var argosy = require('argosy')26var service = argosy()27service.accept({role: 'GettingStarted'})28service.pipe(argosy.patterns({29}, function (message, respond) {30 respond(null, 'Hello, ' + message.name)31}))32service.pipe(process.stdout)33var argosy = require('argosy')34var service = argosy()35service.accept({role: 'GettingStarted'})36service.pipe(argosy.patterns({37}, function (message, respond) {38 respond(null, 'Hello, ' + message.name)39}))40service.pipe(process.stdout)41var argosy = require('argosy')42var service = argosy()43service.accept({
Using AI Code Generation
1var patterns = require('argosy-patterns')2var argosy = require('argosy')3var service = argosy()4service.pipe(patterns({5 'GettingStarted': function (args, cb) {6 cb(null, 'Hello World')7 }8})).pipe(service)9service.on('service', function (service) {10 service.GettingStarted({}, function (err, result) {11 console.log(result)12 })13})
Using AI Code Generation
1var argosy = require("argosy");2var service = argosy();3service.accept({4 GettingStarted: function (callback) {5 callback(null, "Hello World!");6 }7});8var argosy = require("argosy");9var service = argosy();10service.accept({11 GettingStarted: function (callback) {12 callback(null, "Hello World!");13 }14});15var argosy = require("argosy");16var service = argosy();17service.accept({18 GettingStarted: function (callback) {19 callback(null, "Hello World!");20 }21});22var argosy = require("argosy");23var service = argosy();24service.accept({25 GettingStarted: function (callback) {26 callback(null, "Hello World!");27 }28});29var argosy = require("argosy");30var service = argosy();31service.accept({32 GettingStarted: function (callback) {33 callback(null, "Hello World!");34 }35});36var argosy = require("argosy");37var service = argosy();38service.accept({39 GettingStarted: function (callback) {40 callback(null, "Hello World!");41 }42});43var argosy = require("argosy");44var service = argosy();45service.accept({46 GettingStarted: function (callback) {47 callback(null, "Hello World!");48 }49});50var argosy = require("argosy");51var service = argosy();52service.accept({53 GettingStarted: function (callback) {54 callback(null, "Hello World!");55 }56});57var argosy = require("argosy");58var service = argosy();59service.accept({60 GettingStarted: function (callback) {61 callback(null, "Hello World!");62 }63});64var argosy = require("argosy");65var service = argosy();66service.accept({67 GettingStarted: function (callback) {68 callback(null, "Hello World!");69 }70});71var argosy = require("argosy");
Using AI Code Generation
1var argosy = require('argosy')2var service = argosy()3service.use(function (request, response, next) {4 console.log(request)5 response.end('hello world')6})7service.listen(8000)8var argosy = require('argosy')9var service = argosy()10service.use(function (request, response, next) {11 console.log(request)12 response.end('hello world')13})14service.listen(8001)15var argosy = require('argosy')16var service = argosy()17service.use(function (request, response, next) {18 console.log(request)19 response.end('hello world')20})21service.listen(8002)22var argosy = require('argosy')23var service = argosy()24service.use(function (request, response, next) {25 console.log(request)26 response.end('hello world')27})28service.listen(8003)29var argosy = require('argosy')30var service = argosy()31service.use(function (request, response, next) {32 console.log(request)33 response.end('hello world')34})35service.listen(8004)36var argosy = require('argosy')37var service = argosy()38service.use(function (request, response, next) {39 console.log(request)40 response.end('hello world')41})42service.listen(8005)43var argosy = require('argosy')44var service = argosy()45service.use(function (request, response, next) {46 console.log(request)47 response.end('hello world')48})49service.listen(8006)50var argosy = require('argosy')51var service = argosy()
Using AI Code Generation
1var argosy = require('argosy');2var argosyInstance = argosy();3argosyInstance.use(require('./index.js')());4argosyInstance.gettingStarted('Hello World', function (err, data) {5 if (err) {6 console.log('error: ' + err);7 }8 else {9 console.log('data: ' + data);10 }11});12module.exports = function () {13 return function (argosy) {14 argosy.pattern({15 }, function (msg, respond) {16 respond(null, msg.hello);17 });18 };19};20### argosy.pattern(pattern, handler)21### argosy.send(pattern, message, callback)22### argosy.use(plugin)23### argosy.listen(port)24### argosy.close(callback)25### argosy.on(eventName, callback)
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!