├── .base-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── .editorconfig
├── .github
├── CONTRIBUTING.md
├── ISSUE_TEMPLATE
│ ├── config.yml
│ └── report-issue.yml
├── SAMPLE_GUIDELINE.md
├── commands.json
└── workflows
│ ├── ci.yml
│ └── triage.yml
├── .gitignore
├── .lsifrc.json
├── .prettierrc.json
├── .scripts
├── copy-into.ts
├── format.ts
├── run-command.ts
├── run-script.ts
├── samples.ts
├── tsconfig.json
├── update-dependency.ts
├── update-lsif.ts
├── update-readme.ts
└── validate.ts
├── .vscode
└── settings.json
├── LICENSE
├── README.md
├── SECURITY.md
├── authenticationprovider-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── CHANGELOG.md
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── authProvider.ts
│ └── extension.ts
└── tsconfig.json
├── basic-multi-root-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── preview.gif
├── src
│ └── extension.ts
└── tsconfig.json
├── call-hierarchy-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── sample.txt
├── src
│ ├── FoodPyramidHierarchyProvider.ts
│ ├── extension.ts
│ └── model.ts
└── tsconfig.json
├── chat-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── cat.jpeg
├── demo.png
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── chatUtilsSample.ts
│ ├── extension.ts
│ ├── play.tsx
│ ├── simple.ts
│ ├── toolParticipant.ts
│ ├── tools.ts
│ └── toolsPrompt.tsx
└── tsconfig.json
├── chat-tutorial
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── demo.png
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
├── tsconfig.json
└── tutor.jpeg
├── code-actions-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── example.gif
├── example_diagnostic.gif
├── package-lock.json
├── package.json
├── src
│ ├── diagnostics.ts
│ └── extension.ts
└── tsconfig.json
├── codelens-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── CodelensProvider.ts
│ └── extension.ts
└── tsconfig.json
├── comment-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── resources
│ ├── close.svg
│ ├── close_inverse.svg
│ ├── edit.svg
│ └── edit_inverse.svg
├── src
│ └── extension.ts
├── tsconfig.json
└── wiki-demo.gif
├── completions-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── configuration-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── contentprovider-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── locations-syntax.json
├── package-lock.json
├── package.json
├── preview.gif
├── src
│ ├── extension.ts
│ ├── provider.ts
│ └── referencesDocument.ts
└── tsconfig.json
├── custom-data-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── settings.json
├── README.md
├── css.css-data.json
├── demo.gif
├── eslint.config.mjs
├── html.html-data.json
└── package.json
├── custom-editor-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── documentation
│ └── example.png
├── eslint.config.mjs
├── exampleFiles
│ ├── example.cscratch
│ └── example.pawDraw
├── media
│ ├── catScratch.css
│ ├── catScratch.js
│ ├── paw-color.svg
│ ├── paw-outline.svg
│ ├── pawDraw.css
│ ├── pawDraw.js
│ ├── reset.css
│ ├── sand-dark.jpg
│ ├── sand.jpg
│ └── vscode.css
├── package-lock.json
├── package.json
├── src
│ ├── catScratchEditor.ts
│ ├── dispose.ts
│ ├── extension.ts
│ ├── pawDrawEditor.ts
│ └── util.ts
└── tsconfig.json
├── decorator-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── USAGE.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── preview.png
├── src
│ └── extension.ts
└── tsconfig.json
├── diagnostic-related-information-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── resources
│ └── diagnostic-related-info.png
├── sample-demo.rs
├── src
│ └── extension.ts
└── tsconfig.json
├── document-editing-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── document-paste
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── drop-on-document
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── esbuild-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── dist
│ ├── extension.js
│ └── extension.js.map
├── esbuild.js
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── extension.ts
│ └── math.ts
└── tsconfig.json
├── extension-terminal-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── fsconsumer-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── fsprovider-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── tasks.json
├── .vscodeignore
├── CHANGELOG.md
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── sample.png
├── src
│ ├── extension.ts
│ └── fileSystemProvider.ts
└── tsconfig.json
├── getting-started-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── media
│ ├── image.png
│ ├── image.svg
│ ├── linux.md
│ ├── mac.md
│ ├── preview.png
│ ├── sample.png
│ ├── small-image.png
│ ├── web.md
│ └── windows.md
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── github-authentication-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── credentials.ts
│ └── extension.ts
└── tsconfig.json
├── helloworld-minimal-sample
├── .vscode
│ └── launch.json
├── README.md
├── eslint.config.mjs
├── extension.js
├── package-lock.json
└── package.json
├── helloworld-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── helloworld-test-cli-sample
├── .gitignore
├── .vscode-test.mjs
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── extension.ts
│ └── test
│ │ └── suite
│ │ └── extension.test.ts
└── tsconfig.json
├── helloworld-test-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── extension.ts
│ └── test
│ │ ├── runTest.ts
│ │ └── suite
│ │ ├── extension.test.ts
│ │ └── index.ts
└── tsconfig.json
├── helloworld-web-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── tasks.json
├── README.md
├── build
│ └── web-extension.webpack.config.js
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── web
│ │ ├── extension.ts
│ │ └── test
│ │ └── suite
│ │ ├── extension.test.ts
│ │ └── index.ts
├── tsconfig.json
└── webpack.config.js
├── inline-completions
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── playground.js
├── src
│ └── extension.ts
├── tsconfig.json
└── vscode.proposed.inlineCompletionsAdditions.d.ts
├── jupyter-kernel-execution-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── jupyter-server-provider-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── extension.ts
│ └── jupyter.ts
└── tsconfig.json
├── l10n-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── CHANGELOG.md
├── README.md
├── eslint.config.mjs
├── l10n
│ └── bundle.l10n.ja.json
├── package-lock.json
├── package.json
├── package.nls.ja.json
├── package.nls.json
├── src
│ ├── cli.ts
│ ├── command
│ │ └── sayBye.ts
│ └── extension.ts
└── tsconfig.json
├── language-configuration-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── settings.json
├── README.md
├── eslint.config.mjs
├── language-configuration.json
└── package.json
├── lm-api-tutorial
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── lsp-embedded-language-service
├── .gitignore
├── .vscode
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── client
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── extension.ts
│ └── tsconfig.json
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── server
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ ├── embeddedSupport.ts
│ │ ├── languageModelCache.ts
│ │ ├── languageModes.ts
│ │ ├── modes
│ │ │ ├── cssMode.ts
│ │ │ └── htmlMode.ts
│ │ └── server.ts
│ └── tsconfig.json
├── syntaxes
│ └── html1.tmLanguage.json
└── tsconfig.json
├── lsp-embedded-request-forwarding
├── .gitignore
├── .vscode
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── client
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ ├── embeddedSupport.ts
│ │ └── extension.ts
│ └── tsconfig.json
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── server
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── server.ts
│ └── tsconfig.json
├── syntaxes
│ └── html1.tmLanguage.json
└── tsconfig.json
├── lsp-log-streaming-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── client
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ ├── extension.ts
│ │ └── test
│ │ │ ├── completion.test.ts
│ │ │ ├── diagnostics.test.ts
│ │ │ ├── helper.ts
│ │ │ ├── index.ts
│ │ │ └── runTest.ts
│ ├── testFixture
│ │ ├── completion.txt
│ │ └── diagnostics.txt
│ └── tsconfig.json
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── scripts
│ └── e2e.sh
├── server
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── server.ts
│ └── tsconfig.json
└── tsconfig.base.json
├── lsp-multi-server-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── client
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── extension.ts
│ └── tsconfig.json
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── server
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── server.ts
│ └── tsconfig.json
└── tsconfig.json
├── lsp-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── client
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ ├── extension.ts
│ │ └── test
│ │ │ ├── completion.test.ts
│ │ │ ├── diagnostics.test.ts
│ │ │ ├── helper.ts
│ │ │ ├── index.ts
│ │ │ └── runTest.ts
│ ├── testFixture
│ │ ├── completion.txt
│ │ └── diagnostics.txt
│ └── tsconfig.json
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── scripts
│ └── e2e.sh
├── server
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── server.ts
│ └── tsconfig.json
└── tsconfig.json
├── lsp-user-input-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── client
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── extension.ts
│ ├── tsconfig.json
│ └── webpack.config.js
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── server
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── sampleServer.ts
│ ├── tsconfig.json
│ └── webpack.config.js
├── shared.webpack.config.js
├── tsconfig.base.json
└── tsconfig.json
├── lsp-web-extension-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── client
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── browserClientMain.ts
│ └── tsconfig.json
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── server
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── browserServerMain.ts
│ └── tsconfig.json
├── test-data
│ └── test.txt
└── webpack.config.js
├── mcp-extension-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── node_modules
├── .package-lock.json
└── .yarn-integrity
├── nodefs-provider-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── notebook-extend-markdown-renderer-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── settings.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── emoji.ts
├── tsconfig.json
└── webpack.config.js
├── notebook-format-code-action-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── CHANGELOG.md
├── README.md
├── eslint.config.mjs
├── nb-after.ipynb
├── nb-before.ipynb
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── notebook-renderer-react-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── CHANGELOG.md
├── README.md
├── eslint.config.mjs
├── out.x
├── package-lock.json
├── package.json
├── src
│ └── client
│ │ ├── css.d.ts
│ │ ├── index.tsx
│ │ ├── render.tsx
│ │ └── style.css
├── tsconfig.json
└── webpack.config.js
├── notebook-renderer-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── CHANGELOG.md
├── README.md
├── eslint.config.mjs
├── notebook-renderer-sample.gif
├── package-lock.json
├── package.json
├── sample
│ └── sample.ipynb
├── src
│ ├── css.d.ts
│ ├── index.ts
│ ├── render.ts
│ └── style.css
├── tsconfig.json
└── webpack.config.js
├── notebook-serializer-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── controller.ts
│ ├── extension.ts
│ └── serializer.ts
└── tsconfig.json
├── notifications-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── demo.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── package-lock.json
├── package.json
├── product-icon-theme-sample
├── .gitignore
├── .vscode
│ └── launch.json
├── README.md
├── build
│ └── updateFont.js
├── demo.png
├── eslint.config.mjs
├── icons
│ ├── debug-view.svg
│ ├── expando-collapsed.svg
│ ├── expando-expanded.svg
│ ├── explorer-view.svg
│ ├── extensions-view.svg
│ ├── folding-collapsed.svg
│ ├── folding-expanded.svg
│ ├── git-view.svg
│ ├── search-view.svg
│ └── smiley.svg
├── package-lock.json
├── package.json
└── theme
│ ├── v1-product-icon-theme.json
│ ├── vscode-10.html
│ └── vscode-10.woff
├── progress-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── preview.gif
├── src
│ └── extension.ts
└── tsconfig.json
├── proposed-api-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
├── tsconfig.json
└── vscode.d.ts
├── quickinput-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── preview.gif
├── resources
│ ├── dark
│ │ └── add.svg
│ └── light
│ │ └── add.svg
├── src
│ ├── basicInput.ts
│ ├── extension.ts
│ ├── multiStepInput.ts
│ └── quickOpen.ts
└── tsconfig.json
├── semantic-tokens-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── demo.png
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── sample
│ └── sample.semanticLanguage
├── src
│ └── extension.ts
└── tsconfig.json
├── shell-integration-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── snippet-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── settings.json
├── README.md
├── eslint.config.mjs
├── package.json
└── snippets.json
├── source-control-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── resources
│ ├── icons
│ │ ├── dark
│ │ │ ├── check.svg
│ │ │ ├── discard.svg
│ │ │ └── refresh.svg
│ │ └── light
│ │ │ ├── check.svg
│ │ │ ├── discard.svg
│ │ │ └── refresh.svg
│ └── images
│ │ ├── demo.gif
│ │ ├── multi-workspace-folder.gif
│ │ ├── quick_diff.gif
│ │ ├── source_control_view.PNG
│ │ └── status_bar.PNG
├── src
│ ├── afs.ts
│ ├── extension.ts
│ ├── fiddleConfiguration.ts
│ ├── fiddleDocumentContentProvider.ts
│ ├── fiddleRepository.ts
│ ├── fiddleSourceControl.ts
│ └── util.ts
└── tsconfig.json
├── statusbar-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── preview.gif
├── src
│ └── extension.ts
└── tsconfig.json
├── tabs-api-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── task-provider-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── customTaskProvider.ts
│ ├── extension.ts
│ └── rakeTaskProvider.ts
├── tsconfig.json
└── tsconfig.tsbuildinfo
├── telemetry-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
├── tsconfig.json
└── vscode.d.ts
├── terminal-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── demo.png
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
├── tsconfig.json
├── vscode.proposed.terminalDataWriteEvent.d.ts
└── vscode.proposed.terminalDimensions.d.ts
├── test-provider-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── sample
│ ├── test.md
│ └── test2.md
├── src
│ ├── extension.ts
│ ├── parser.ts
│ └── testTree.ts
└── tsconfig.json
├── theme-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ └── settings.json
├── README.md
├── Sample_Dark.tmTheme
├── Sample_Light.tmTheme
├── demo-dark.png
├── demo-light.png
├── eslint.config.mjs
├── package-lock.json
└── package.json
├── tree-view-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── USAGE.md
├── eslint.config.mjs
├── media
│ ├── dep.png
│ └── dep.svg
├── package-lock.json
├── package.json
├── resources
│ ├── dark
│ │ ├── boolean.svg
│ │ ├── dependency.svg
│ │ ├── document.svg
│ │ ├── edit.svg
│ │ ├── folder.svg
│ │ ├── number.svg
│ │ ├── refresh.svg
│ │ └── string.svg
│ ├── light
│ │ ├── boolean.svg
│ │ ├── dependency.svg
│ │ ├── document.svg
│ │ ├── edit.svg
│ │ ├── folder.svg
│ │ ├── number.svg
│ │ ├── refresh.svg
│ │ └── string.svg
│ └── package-explorer.png
├── src
│ ├── extension.ts
│ ├── fileExplorer.ts
│ ├── ftpExplorer.ts
│ ├── jsftp.d.ts
│ ├── jsonOutline.ts
│ ├── nodeDependencies.ts
│ ├── testView.ts
│ └── testViewDragAndDrop.ts
└── tsconfig.json
├── uri-handler-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── vim-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── example.gif
├── package-lock.json
├── package.json
├── src
│ ├── common.ts
│ ├── controller.ts
│ ├── extension.ts
│ ├── mappings.ts
│ ├── motions.ts
│ ├── operators.ts
│ └── words.ts
├── tsconfig.json
└── vimtutor.txt
├── virtual-document-sample
├── .gitignore
├── .vscode
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── .vscodeignore
├── README.md
├── cowsay-bwd.png
├── cowsay.gif
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── cowsay.d.ts
│ └── extension.ts
└── tsconfig.json
├── wasm-component-model-async
├── .gitignore
├── .vscode
│ └── launch.json
├── Cargo.lock
├── Cargo.toml
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── calculator.ts
│ ├── extension.ts
│ ├── lib.rs
│ └── worker.ts
├── tsconfig.json
└── wit
│ └── calculator.wit
├── wasm-component-model-resource
├── .gitignore
├── .vscode
│ └── launch.json
├── Cargo.lock
├── Cargo.toml
├── README.md
├── bin
│ └── esbuild.js
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── calculator.rs
│ ├── calculator.ts
│ ├── extension.ts
│ └── lib.rs
├── tsconfig.json
└── wit
│ └── calculator.wit
├── wasm-component-model
├── .gitignore
├── .vscode
│ └── launch.json
├── Cargo.lock
├── Cargo.toml
├── README.md
├── bin
│ └── esbuild.js
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── calculator.ts
│ ├── extension.ts
│ └── lib.rs
├── tsconfig.json
└── wit
│ └── calculator.wit
├── wasm-language-server
├── .gitignore
├── .vscode
│ └── launch.json
├── README.MD
├── bin
│ └── esbuild.js
├── client
│ ├── bin
│ │ └── esbuild.js
│ ├── package-lock.json
│ ├── package.json
│ ├── src
│ │ └── extension.ts
│ └── tsconfig.json
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── server
│ ├── Cargo.lock
│ ├── Cargo.toml
│ ├── bin
│ │ └── send.js
│ ├── package.json
│ └── src
│ │ └── main.rs
└── testbed
│ └── workspace
│ └── lorem.txt
├── webpack-sample
├── .gitignore
├── .vscode
│ ├── extensions.json
│ └── launch.json
├── .vscodeignore
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
│ ├── extension.ts
│ └── math.ts
├── tsconfig.json
└── webpack.config.js
├── webview-codicons-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── demo.gif
├── eslint.config.mjs
├── media
│ └── styles.css
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── webview-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── demo.gif
├── eslint.config.mjs
├── media
│ ├── cat.gif
│ ├── jsconfig.json
│ ├── main.js
│ ├── reset.css
│ └── vscode.css
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
├── webview-view-sample
├── .vscode
│ ├── extensions.json
│ ├── launch.json
│ ├── settings.json
│ └── tasks.json
├── README.md
├── eslint.config.mjs
├── media
│ ├── main.css
│ ├── main.js
│ ├── reset.css
│ └── vscode.css
├── package-lock.json
├── package.json
├── src
│ └── extension.ts
└── tsconfig.json
└── welcome-view-content-sample
├── .vscode
├── extensions.json
├── launch.json
├── settings.json
└── tasks.json
├── README.md
├── eslint.config.mjs
├── package-lock.json
├── package.json
├── src
└── extension.ts
└── tsconfig.json
/.base-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/.base-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/.base-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/.base-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/.base-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 |
--------------------------------------------------------------------------------
/.base-sample/README.md:
--------------------------------------------------------------------------------
1 | # Base Sample
2 |
3 | This sample is similar to the [helloworld-sample](../helloworld-sample), but it follows the [Sample Guideline](https://github.com/Microsoft/vscode-extension-samples/blob/main/.github/SAMPLE_GUIDELINE.md).
4 |
5 | You can easily write a new sample following the guideline by `cp -r .base-sample my-sample`.
6 |
--------------------------------------------------------------------------------
/.base-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/.base-sample/demo.gif
--------------------------------------------------------------------------------
/.base-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | "strict": true
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/.editorconfig:
--------------------------------------------------------------------------------
1 | [*.{ts,tsx,js,jsx,json}]
2 | indent_style = tab
3 | tab_width = 4
--------------------------------------------------------------------------------
/.github/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contributing to vscode-extension-samples
2 |
3 | If you want to contribute a new sample, see [Sample Guideline](./SAMPLE_GUIDELINE.md)
--------------------------------------------------------------------------------
/.github/ISSUE_TEMPLATE/config.yml:
--------------------------------------------------------------------------------
1 | blank_issues_enabled: false
2 | contact_links:
3 | - name: 🙋 Ask Question
4 | about: Ask questions about developing VS Code extensions on Stack Overflow.
5 | url: 'https://stackoverflow.com/questions/tagged/vscode-extensions'
6 | - name: 💬 Discuss
7 | url: https://github.com/microsoft/vscode-discussions/discussions
8 | about: Discuss extension development questions and ideas with the VS Code developer community.
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 |
3 | on:
4 | pull_request:
5 | branches: [ $default-branch ]
6 |
7 | jobs:
8 | build:
9 | runs-on: ubuntu-latest
10 |
11 | steps:
12 | - uses: actions/checkout@v4
13 | - uses: actions/setup-node@v4
14 | - run: npm run validate
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | .DS_Store
2 | npm-debug.log
3 | Thumbs.db
4 | **/node_modules/
5 | */out/
6 | */.vs/
7 | tsconfig.lsif.json
8 | *.lsif
9 | *.db
10 | *.tsbuildinfo
11 |
--------------------------------------------------------------------------------
/.lsifrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "project": "tsconfig.lsif.json",
3 | "out": "vscode-extension-samples.lsif"
4 | }
--------------------------------------------------------------------------------
/.prettierrc.json:
--------------------------------------------------------------------------------
1 | {
2 | "useTabs": true,
3 | "singleQuote": true,
4 | "printWidth": 92
5 | }
--------------------------------------------------------------------------------
/.scripts/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "ESNext",
4 | "moduleResolution": "Node",
5 | "target": "ES2022",
6 | "lib": [
7 | "ES2022"
8 | ],
9 | "noEmit": true,
10 | "strict": true
11 | },
12 | "ts-node": {
13 | "esm": true
14 | }
15 | }
--------------------------------------------------------------------------------
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false,
3 | "prettier.semi": true,
4 | "prettier.printWidth": 92,
5 | "prettier.singleQuote": true,
6 | "prettier.useTabs": true,
7 | "git.branchProtection": [
8 | "main"
9 | ],
10 | "git.branchProtectionPrompt": "alwaysCommitToNewBranch",
11 | "git.branchRandomName.enable": true,
12 | "githubPullRequests.assignCreated": "${user}",
13 | "githubPullRequests.defaultMergeMethod": "squash"
14 | }
--------------------------------------------------------------------------------
/authenticationprovider-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/authenticationprovider-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/authenticationprovider-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/authenticationprovider-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 |
5 | src/**
6 | .gitignore
7 | .yarnrc
8 | vsc-extension-quickstart.md
9 | **/tsconfig.json
10 | **/.eslintrc.json
11 | **/*.map
12 | **/*.ts
13 |
--------------------------------------------------------------------------------
/authenticationprovider-sample/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to the "vscode-authenticationprovider-sample" extension will be documented in this file.
4 |
5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6 |
7 | ## [Unreleased]
8 |
9 | - Initial release
--------------------------------------------------------------------------------
/basic-multi-root-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test
--------------------------------------------------------------------------------
/basic-multi-root-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/basic-multi-root-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | "typescript.tsc.autoDetect": "off" // Turn off tsc task auto detection since we have the necessary task as npm scripts
10 | }
--------------------------------------------------------------------------------
/basic-multi-root-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/basic-multi-root-sample/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/basic-multi-root-sample/preview.gif
--------------------------------------------------------------------------------
/basic-multi-root-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": ".",
9 | "strict": true
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/call-hierarchy-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/call-hierarchy-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/call-hierarchy-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/call-hierarchy-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/call-hierarchy-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 | tslint.json
--------------------------------------------------------------------------------
/call-hierarchy-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/call-hierarchy-sample/demo.gif
--------------------------------------------------------------------------------
/call-hierarchy-sample/sample.txt:
--------------------------------------------------------------------------------
1 | # Right click on a term below and select `Peek Call Hierarchy`.
2 |
3 | Coyote eats deer.
4 | Deer eats plants.
5 | Coyote eats lizard.
6 | Lizard eats bird.
7 | Lizard eats frog.
8 | Lizard eats butterfly.
9 | Bird eats seeds.
10 | Frog eats insects.
11 | Butterfly eats fruit.
--------------------------------------------------------------------------------
/call-hierarchy-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | "strict": true
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/chat-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | dist
3 | node_modules
4 | .vscode-test/
5 | *.vsix
6 |
--------------------------------------------------------------------------------
/chat-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "search.exclude": {
3 | "out": true
4 | },
5 | "git.branchProtection": [
6 | "main"
7 | ],
8 | "files.trimTrailingWhitespace": true
9 | }
--------------------------------------------------------------------------------
/chat-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | src/**
4 | .gitignore
5 | .yarnrc
6 | webpack.config.js
7 | vsc-extension-quickstart.md
8 | **/tsconfig.json
9 | **/.eslintrc.json
10 | **/*.map
11 | **/*.ts
12 |
--------------------------------------------------------------------------------
/chat-sample/cat.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/chat-sample/cat.jpeg
--------------------------------------------------------------------------------
/chat-sample/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/chat-sample/demo.png
--------------------------------------------------------------------------------
/chat-sample/src/extension.ts:
--------------------------------------------------------------------------------
1 | import * as vscode from 'vscode';
2 | import { registerChatLibChatParticipant } from './chatUtilsSample';
3 | import { registerSimpleParticipant } from './simple';
4 | import { registerToolUserChatParticipant } from './toolParticipant';
5 | import { registerChatTools } from './tools';
6 |
7 | export function activate(context: vscode.ExtensionContext) {
8 | registerSimpleParticipant(context);
9 | registerToolUserChatParticipant(context);
10 | registerChatLibChatParticipant(context);
11 |
12 | registerChatTools(context);
13 | }
14 |
15 | export function deactivate() { }
16 |
--------------------------------------------------------------------------------
/chat-tutorial/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | dist
3 | node_modules
4 | .vscode-test/
5 | *.vsix
6 |
--------------------------------------------------------------------------------
/chat-tutorial/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/chat-tutorial/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/chat-tutorial/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/chat-tutorial/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | src/**
4 | .gitignore
5 | .yarnrc
6 | webpack.config.js
7 | vsc-extension-quickstart.md
8 | **/tsconfig.json
9 | **/.eslintrc.json
10 | **/*.map
11 | **/*.ts
12 |
--------------------------------------------------------------------------------
/chat-tutorial/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/chat-tutorial/demo.png
--------------------------------------------------------------------------------
/chat-tutorial/tutor.jpeg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/chat-tutorial/tutor.jpeg
--------------------------------------------------------------------------------
/code-actions-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/code-actions-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/code-actions-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/code-actions-sample/example.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/code-actions-sample/example.gif
--------------------------------------------------------------------------------
/code-actions-sample/example_diagnostic.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/code-actions-sample/example_diagnostic.gif
--------------------------------------------------------------------------------
/code-actions-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": [
12 | "node_modules",
13 | ".vscode-test"
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/codelens-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/codelens-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/codelens-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/codelens-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/codelens-sample/demo.gif
--------------------------------------------------------------------------------
/codelens-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | /* Strict Type-Checking Option */
10 | "strict": true, /* enable all strict type-checking options */
11 | /* Additional Checks */
12 | "noUnusedLocals": true /* Report errors on unused locals. */
13 | },
14 | "exclude": [
15 | "node_modules"
16 | ]
17 | }
--------------------------------------------------------------------------------
/comment-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/comment-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/comment-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/comment-sample/README.md:
--------------------------------------------------------------------------------
1 | # Commenting API Example
2 |
3 | This sample shows
4 |
5 | - How to create a comment controller.
6 | - How to support comment thread creation for documents.
7 | - How to update comment actions dynamically.
8 |
9 | 
10 |
11 | ## Running the Sample
12 |
13 | - Run `npm install` in terminal to install dependencies
14 | - Run the `Run Extension` target in the Debug View. This will:
15 | - Start a task `npm: watch` to compile the code
16 | - Run the extension in a new VS Code window
17 |
--------------------------------------------------------------------------------
/comment-sample/resources/close.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/comment-sample/resources/close_inverse.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/comment-sample/resources/edit.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/comment-sample/resources/edit_inverse.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/comment-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/comment-sample/wiki-demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/comment-sample/wiki-demo.gif
--------------------------------------------------------------------------------
/completions-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/completions-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/completions-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/completions-sample/README.md:
--------------------------------------------------------------------------------
1 | # Completion Item Provider Sample
2 |
3 | This sample shows how to provide completions aka IntelliSense into the editor. The sample uses the `CompletionItemProvider` api.
4 |
5 | 
6 |
7 |
8 | ## VS Code API
9 |
10 | ### `vscode` module
11 |
12 | - [`languages.registerCompletionItemProvider`](https://code.visualstudio.com/api/references/vscode-api#languages.registerCompletionItemProvider)
13 |
--------------------------------------------------------------------------------
/completions-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/completions-sample/demo.gif
--------------------------------------------------------------------------------
/completions-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": [
12 | "node_modules",
13 | ".vscode-test"
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/configuration-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/configuration-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/configuration-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | "typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
10 | "typescript.tsc.autoDetect": "off",
11 | "editor.insertSpaces": false,
12 | }
--------------------------------------------------------------------------------
/configuration-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/configuration-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/configuration-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": [
12 | "node_modules",
13 | ".vscode-test"
14 | ]
15 | }
--------------------------------------------------------------------------------
/contentprovider-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/contentprovider-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/contentprovider-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Launch Extension",
6 | "type": "extensionHost",
7 | "request": "launch",
8 | "runtimeExecutable": "${execPath}",
9 | "args": [
10 | "--extensionDevelopmentPath=${workspaceRoot}"
11 | ],
12 | "stopOnEntry": false,
13 | "sourceMaps": true,
14 | "outFiles": [
15 | "${workspaceRoot}/out/**/*.js"
16 | ],
17 | "preLaunchTask": "npm: watch"
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/contentprovider-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/contentprovider-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/contentprovider-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | typings/**
3 | **/*.ts
4 | **/*.map
5 | .gitignore
6 | tsconfig.json
7 | preview.gif
8 |
--------------------------------------------------------------------------------
/contentprovider-sample/locations-syntax.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "Locations",
3 | "scopeName": "source.locations",
4 | "patterns": [
5 | {
6 | "name": "comment.line.file",
7 | "match": "file:.*$"
8 | },
9 | {
10 | "name": "keyword.locations",
11 | "match": " \\d+:"
12 | },
13 | {
14 | "name": "keyword.control.locations",
15 | "match": " \\d+"
16 | }
17 | ]
18 | }
19 |
--------------------------------------------------------------------------------
/contentprovider-sample/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/contentprovider-sample/preview.gif
--------------------------------------------------------------------------------
/contentprovider-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules"]
12 | }
13 |
--------------------------------------------------------------------------------
/custom-data-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/custom-data-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Run Extension",
6 | "type": "extensionHost",
7 | "request": "launch",
8 | "runtimeExecutable": "${execPath}",
9 | "args": ["--extensionDevelopmentPath=${workspaceFolder}"]
10 | }
11 | ]
12 | }
13 |
--------------------------------------------------------------------------------
/custom-data-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "html.customData": ["./html.html-data.json"],
3 | "css.customData": ["./css.css-data.json"]
4 | }
5 |
--------------------------------------------------------------------------------
/custom-data-sample/css.css-data.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1.1,
3 | "properties": [{
4 | "name": "my-size",
5 | "description": "Compiles down to `width` and `height`. See details at https://github.com/postcss/postcss-size",
6 | "references": [
7 | {
8 | "name": "GitHub",
9 | "url": "https://github.com/postcss/postcss-size"
10 | }
11 | ]
12 | }],
13 | "pseudoClasses": [{
14 | "name": ":my-link",
15 | "description": ":any-link pseudo class. See details at https://preset-env.cssdb.org/features#any-link-pseudo-class"
16 | }]
17 | }
--------------------------------------------------------------------------------
/custom-data-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/custom-data-sample/demo.gif
--------------------------------------------------------------------------------
/custom-data-sample/html.html-data.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": 1.1,
3 | "tags": [{
4 | "name": "my-button",
5 | "description": "My button",
6 | "attributes": [{
7 | "name": "type",
8 | "description": "My button type",
9 | "values": [
10 | { "name": "alert" }
11 | ]
12 | }],
13 | "references": [
14 | {
15 | "name": "Bootstrap buttons",
16 | "url": "https://getbootstrap.com/docs/4.0/components/buttons/"
17 | }
18 | ]
19 | }]
20 | }
--------------------------------------------------------------------------------
/custom-data-sample/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "custom-data-sample",
3 | "description": "Custom Data sample extension for VS Code",
4 | "version": "0.0.1",
5 | "publisher": "vscode-samples",
6 | "repository": "https://github.com/Microsoft/vscode-extension-samples",
7 | "engines": {
8 | "vscode": "^1.38.0"
9 | },
10 | "contributes": {
11 | "html": {
12 | "customData": [
13 | "./html.html-data.json"
14 | ]
15 | },
16 | "css": {
17 | "customData": [
18 | "./css.css-data.json"
19 | ]
20 | }
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/custom-editor-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/custom-editor-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/custom-editor-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/custom-editor-sample/documentation/example.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/custom-editor-sample/documentation/example.png
--------------------------------------------------------------------------------
/custom-editor-sample/exampleFiles/example.cscratch:
--------------------------------------------------------------------------------
1 | {
2 | "scratches": [
3 | {
4 | "id": "8lYOoWqz2rHtPuhvnZ43eMx1mG6WnFrm",
5 | "text": "😸",
6 | "created": 1584577931699
7 | },
8 | {
9 | "id": "aZ57bJUEaXZ5wuBAX6NfGuj85Y6iw84N",
10 | "text": "😻",
11 | "created": 1584577933329
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/custom-editor-sample/exampleFiles/example.pawDraw:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/custom-editor-sample/exampleFiles/example.pawDraw
--------------------------------------------------------------------------------
/custom-editor-sample/media/reset.css:
--------------------------------------------------------------------------------
1 | html {
2 | box-sizing: border-box;
3 | font-size: 13px;
4 | }
5 |
6 | *,
7 | *:before,
8 | *:after {
9 | box-sizing: inherit;
10 | }
11 |
12 | body,
13 | h1,
14 | h2,
15 | h3,
16 | h4,
17 | h5,
18 | h6,
19 | p,
20 | ol,
21 | ul {
22 | margin: 0;
23 | padding: 0;
24 | font-weight: normal;
25 | }
26 |
27 | img {
28 | max-width: 100%;
29 | height: auto;
30 | }
31 |
--------------------------------------------------------------------------------
/custom-editor-sample/media/sand-dark.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/custom-editor-sample/media/sand-dark.jpg
--------------------------------------------------------------------------------
/custom-editor-sample/media/sand.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/custom-editor-sample/media/sand.jpg
--------------------------------------------------------------------------------
/custom-editor-sample/src/extension.ts:
--------------------------------------------------------------------------------
1 | import * as vscode from 'vscode';
2 | import { CatScratchEditorProvider } from './catScratchEditor';
3 | import { PawDrawEditorProvider } from './pawDrawEditor';
4 |
5 | export function activate(context: vscode.ExtensionContext) {
6 | // Register our custom editor providers
7 | context.subscriptions.push(CatScratchEditorProvider.register(context));
8 | context.subscriptions.push(PawDrawEditorProvider.register(context));
9 | }
10 |
--------------------------------------------------------------------------------
/custom-editor-sample/src/util.ts:
--------------------------------------------------------------------------------
1 | export function getNonce() {
2 | let text = '';
3 | const possible = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
4 | for (let i = 0; i < 32; i++) {
5 | text += possible.charAt(Math.floor(Math.random() * possible.length));
6 | }
7 | return text;
8 | }
9 |
--------------------------------------------------------------------------------
/custom-editor-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src",
10 | },
11 | "exclude": ["node_modules", ".vscode-test"],
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/decorator-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/decorator-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/decorator-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Launch Extension",
6 | "type": "extensionHost",
7 | "request": "launch",
8 | "runtimeExecutable": "${execPath}",
9 | "args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
10 | "stopOnEntry": false,
11 | "sourceMaps": true,
12 | "outFiles": [ "${workspaceRoot}/out/**/*.js" ],
13 | "preLaunchTask": "npm: watch"
14 | }
15 | ]
16 | }
--------------------------------------------------------------------------------
/decorator-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/decorator-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/decorator-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | **/*.ts
3 | **/*.map
4 | .gitignore
5 | tslint.json
6 | tsconfig.json
7 |
--------------------------------------------------------------------------------
/decorator-sample/preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/decorator-sample/preview.png
--------------------------------------------------------------------------------
/decorator-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
--------------------------------------------------------------------------------
/diagnostic-related-information-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/diagnostic-related-information-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/diagnostic-related-information-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | }
9 | }
--------------------------------------------------------------------------------
/diagnostic-related-information-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 | tslint.json
--------------------------------------------------------------------------------
/diagnostic-related-information-sample/README.md:
--------------------------------------------------------------------------------
1 | # README
2 |
3 | This sample generates diagnostics with related information which can be seen in Problems view and in the editor.
4 |
5 | 
6 |
7 | ## Set up & Test
8 |
9 | - Clone this extension
10 | - `npm install`
11 | - Launch the extension
12 | - Open the file [sample-demo.rs](sample-demo.rs) that exists in this extension
13 | - `Problems view` shows an error with related information
14 | - Typing `F8` in the editor also shows the error with related information
15 |
16 |
--------------------------------------------------------------------------------
/diagnostic-related-information-sample/resources/diagnostic-related-info.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/diagnostic-related-information-sample/resources/diagnostic-related-info.png
--------------------------------------------------------------------------------
/diagnostic-related-information-sample/sample-demo.rs:
--------------------------------------------------------------------------------
1 | fn main() {
2 | let x = 5;
3 | println!("The value of x is: {}", x);
4 | x = 6;
5 | println!("The value of x is: {}", x);
6 | }
7 |
--------------------------------------------------------------------------------
/diagnostic-related-information-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": [
12 | "node_modules",
13 | ".vscode-test"
14 | ]
15 | }
--------------------------------------------------------------------------------
/document-editing-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/document-editing-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/document-editing-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/document-editing-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/document-editing-sample/demo.gif
--------------------------------------------------------------------------------
/document-editing-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/document-paste/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 | vscode.*d.ts
--------------------------------------------------------------------------------
/document-paste/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/document-paste/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/document-paste/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/document-paste/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 |
--------------------------------------------------------------------------------
/document-paste/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | "strict": true
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/drop-on-document/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/drop-on-document/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/drop-on-document/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/drop-on-document/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/drop-on-document/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 |
--------------------------------------------------------------------------------
/drop-on-document/README.md:
--------------------------------------------------------------------------------
1 | # Document on Drop Sample
2 |
3 | This sample shows usage of the [document on drop API](https://github.com/microsoft/vscode/issues/142990).
4 |
5 | This sample adds two sample drop providers for plain text files:
6 |
7 | - `ReverseTextOnDropProvider` — This provider reverses any text dropped into a plain text editor.
8 |
9 | - `FileNameListOnDropProvider` — This provider inserts a numbered list of files names. It accepts dropped files from VS Code's explorer, VS Code's open editors view, or from the operating system.
10 |
--------------------------------------------------------------------------------
/drop-on-document/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | "strict": true
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/esbuild-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": ["dbaeumer.vscode-eslint", "connor4312.esbuild-problem-matchers"]
5 | }
6 |
--------------------------------------------------------------------------------
/esbuild-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode
2 | node_modules
3 | src/**
4 | package-lock.json
5 | tsconfig.json
6 | esbuild.js
7 | .eslintrc.js
8 | **/*.map
9 |
--------------------------------------------------------------------------------
/esbuild-sample/dist/extension.js.map:
--------------------------------------------------------------------------------
1 | {
2 | "version": 3,
3 | "sources": ["../src/extension.ts", "../src/math.ts"],
4 | "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAIA,aAAwB;;;ACCjB,SAAS,IAAI,GAAW,GAAmB;AACjD,SAAO,IAAI;AACZ;;;ADAO,SAAS,SAAS,SAAkC;AAE1D,UAAQ,IAAI,iEAAiE;AAE7E,QAAM,aAAoB,gBAAS,gBAAgB,gCAAgC,MAAM;AACxF,IAAO,cAAO,uBAAuB,YAAY,IAAI,IAAI,CAAC,CAAC,EAAE;AAAA,EAC9D,CAAC;AAED,UAAQ,cAAc,KAAK,UAAU;AACtC;AAEO,SAAS,aAAa;AAAE;",
5 | "names": []
6 | }
7 |
--------------------------------------------------------------------------------
/esbuild-sample/src/math.ts:
--------------------------------------------------------------------------------
1 | /*---------------------------------------------------------
2 | * Copyright (C) Microsoft Corporation. All rights reserved.
3 | *--------------------------------------------------------*/
4 |
5 |
6 | export function add(a: number, b: number): number {
7 | return a + b;
8 | }
9 |
10 | export function sub(a: number, b: number): number {
11 | return a - b;
12 | }
13 |
--------------------------------------------------------------------------------
/esbuild-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/extension-terminal-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/extension-terminal-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/extension-terminal-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/extension-terminal-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/extension-terminal-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | typings/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/extension-terminal-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/fsconsumer-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/fsconsumer-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/fsconsumer-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=733558
3 | // for the documentation about the tasks.json format
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": [
10 | "$tsc-watch"
11 | ],
12 | "isBackground": true
13 | }
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/fsconsumer-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 |
10 |
--------------------------------------------------------------------------------
/fsconsumer-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "strictNullChecks": true,
4 | "module": "commonjs",
5 | "target": "es2020",
6 | "lib": ["es2020"],
7 | "outDir": "out",
8 | "sourceMap": true,
9 | "strict": true,
10 | "rootDir": "."
11 | },
12 | "exclude": ["node_modules", ".vscode-test"]
13 | }
14 |
--------------------------------------------------------------------------------
/fsprovider-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/fsprovider-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/fsprovider-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=733558
3 | // for the documentation about the tasks.json format
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": [
10 | "$tsc-watch"
11 | ],
12 | "isBackground": true
13 | }
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/fsprovider-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/fsprovider-sample/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 | All notable changes to the "vscode-file-system-sample" extension will be documented in this file.
3 |
4 | Check [Keep a Changelog](https://keepachangelog.com/) for recommendations on how to structure this file.
5 |
6 | ## [Unreleased]
7 | - Initial release
--------------------------------------------------------------------------------
/fsprovider-sample/sample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/fsprovider-sample/sample.png
--------------------------------------------------------------------------------
/fsprovider-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "strictNullChecks": true,
4 | "module": "commonjs",
5 | "target": "es2020",
6 | "lib": ["es2020"],
7 | "outDir": "out",
8 | "sourceMap": true,
9 | "strict": true,
10 | "rootDir": "."
11 | },
12 | "exclude": ["node_modules", ".vscode-test"]
13 | }
14 |
--------------------------------------------------------------------------------
/getting-started-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/getting-started-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/getting-started-sample/README.md:
--------------------------------------------------------------------------------
1 | # getting-started-sample
2 |
3 | This sample shows how to provide a walkthrough to the Getting Started section in vscode's welcome page.
4 |
5 | 
--------------------------------------------------------------------------------
/getting-started-sample/media/image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/getting-started-sample/media/image.png
--------------------------------------------------------------------------------
/getting-started-sample/media/linux.md:
--------------------------------------------------------------------------------
1 | # Hello Linux Users
2 |
3 | [Say hello](command:getting-started-sample.sayHello)
4 |
5 | 
6 |
7 | ```ts
8 | const a = 12;
9 | ```
--------------------------------------------------------------------------------
/getting-started-sample/media/mac.md:
--------------------------------------------------------------------------------
1 | # Hello Mac Users
2 |
3 | [Say hello](command:getting-started-sample.sayHello)
4 |
5 | 
6 |
7 | ```ts
8 | const a = 12;
9 | ```
--------------------------------------------------------------------------------
/getting-started-sample/media/preview.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/getting-started-sample/media/preview.png
--------------------------------------------------------------------------------
/getting-started-sample/media/sample.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/getting-started-sample/media/sample.png
--------------------------------------------------------------------------------
/getting-started-sample/media/small-image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/getting-started-sample/media/small-image.png
--------------------------------------------------------------------------------
/getting-started-sample/media/web.md:
--------------------------------------------------------------------------------
1 | # Hello Web Users
2 |
3 | [Say hello](command:getting-started-sample.sayHello)
4 |
5 | 
6 |
7 | ```ts
8 | const a = 12;
9 | ```
--------------------------------------------------------------------------------
/getting-started-sample/media/windows.md:
--------------------------------------------------------------------------------
1 | # Hello Windows Users
2 |
3 | [Say hello](command:getting-started-sample.sayHello)
4 |
5 | 
6 |
7 | ```ts
8 | const a = 12;
9 | ```
--------------------------------------------------------------------------------
/getting-started-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/github-authentication-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 | vscode.d.ts
6 |
--------------------------------------------------------------------------------
/github-authentication-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/github-authentication-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 | tslint.json
--------------------------------------------------------------------------------
/github-authentication-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/github-authentication-sample/demo.gif
--------------------------------------------------------------------------------
/github-authentication-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "outDir": "out",
6 | "sourceMap": true,
7 | "rootDir": "src",
8 | "strict": true
9 | },
10 | "exclude": ["node_modules", ".vscode-test"]
11 | }
12 |
--------------------------------------------------------------------------------
/helloworld-minimal-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "name": "Run Extension",
6 | "type": "extensionHost",
7 | "request": "launch",
8 | "runtimeExecutable": "${execPath}",
9 | "args": ["--extensionDevelopmentPath=${workspaceFolder}"]
10 | }
11 | ]
12 | }
13 |
--------------------------------------------------------------------------------
/helloworld-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/helloworld-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/helloworld-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/helloworld-sample/demo.gif
--------------------------------------------------------------------------------
/helloworld-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/helloworld-test-cli-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/helloworld-test-cli-sample/.vscode-test.mjs:
--------------------------------------------------------------------------------
1 | import { defineConfig } from '@vscode/test-cli';
2 |
3 | export default defineConfig({
4 | files: 'out/test/**/*.test.js',
5 | });
6 |
--------------------------------------------------------------------------------
/helloworld-test-cli-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/helloworld-test-cli-sample/src/test/suite/extension.test.ts:
--------------------------------------------------------------------------------
1 | import * as assert from 'assert';
2 |
3 | // You can import and use all API from the 'vscode' module
4 | // as well as import your extension to test it
5 | import * as vscode from 'vscode';
6 | // import * as myExtension from '../../extension';
7 |
8 | suite('Extension Test Suite', () => {
9 | vscode.window.showInformationMessage('Start all tests.');
10 |
11 | test('Sample test', () => {
12 | assert.strictEqual([1, 2, 3].indexOf(5), -1);
13 | assert.strictEqual([1, 2, 3].indexOf(0), -1);
14 | });
15 | });
16 |
--------------------------------------------------------------------------------
/helloworld-test-cli-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | "strict": true,
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/helloworld-test-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/helloworld-test-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/helloworld-test-sample/README.md:
--------------------------------------------------------------------------------
1 | # Hello World Test Sample
2 |
3 | This is the Hello World example with integration tests setup.
4 |
5 | You can find the accompanying documentation at https://code.visualstudio.com/api/working-with-extensions/testing-extension.
6 |
7 | ## Demo
8 |
9 | 
10 |
11 | ## Running the Sample
12 |
13 | - Run `npm install` in terminal to install dependencies
14 | - Run the `Run Extension Tests` target in the Debug View. This will:
15 | - Start a task `npm: watch` to compile the code
16 | - Run the extension integration test in a new VS Code window
17 |
--------------------------------------------------------------------------------
/helloworld-test-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/helloworld-test-sample/demo.gif
--------------------------------------------------------------------------------
/helloworld-test-sample/src/test/suite/extension.test.ts:
--------------------------------------------------------------------------------
1 | import * as assert from 'assert';
2 |
3 | // You can import and use all API from the 'vscode' module
4 | // as well as import your extension to test it
5 | import * as vscode from 'vscode';
6 | // import * as myExtension from '../../extension';
7 |
8 | suite('Extension Test Suite', () => {
9 | vscode.window.showInformationMessage('Start all tests.');
10 |
11 | test('Sample test', () => {
12 | assert.strictEqual([1, 2, 3].indexOf(5), -1);
13 | assert.strictEqual([1, 2, 3].indexOf(0), -1);
14 | });
15 | });
16 |
--------------------------------------------------------------------------------
/helloworld-test-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | "strict": true,
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/helloworld-web-sample/.gitignore:
--------------------------------------------------------------------------------
1 | dist
2 | node_modules
3 | .vscode-test-web/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/helloworld-web-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint",
6 | "amodio.tsl-problem-matcher"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/helloworld-web-sample/build/web-extension.webpack.config.js:
--------------------------------------------------------------------------------
1 | // moved to helloworld-web-sample/webpack.config.js
--------------------------------------------------------------------------------
/helloworld-web-sample/src/web/test/suite/extension.test.ts:
--------------------------------------------------------------------------------
1 | import * as assert from 'assert';
2 |
3 | // You can import and use all API from the 'vscode' module
4 | // as well as import your extension to test it
5 | import * as vscode from 'vscode';
6 | // import * as myExtension from '../../extension';
7 |
8 | suite('Web Extension Test Suite', () => {
9 | vscode.window.showInformationMessage('Start all tests.');
10 |
11 | test('Sample test', () => {
12 | assert.strictEqual(-1, [1, 2, 3].indexOf(5));
13 | assert.strictEqual(-1, [1, 2, 3].indexOf(0));
14 | });
15 | });
16 |
--------------------------------------------------------------------------------
/inline-completions/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/inline-completions/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/inline-completions/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/inline-completions/demo.gif
--------------------------------------------------------------------------------
/inline-completions/playground.js:
--------------------------------------------------------------------------------
1 | // Trigger inline completions after each line
2 |
3 | // [0,*):// Trigger inline completions in this line, they work!
4 | // Trigger inline completions in this line
5 |
6 | // [0,*):console.log(
7 |
8 |
9 | // [0,*):console.log("foo"
10 | // [0,*):console.log({ label: "("
11 |
12 |
13 | // [0,*):console.log(`${(1+2}`)
14 |
15 | // [0,*):({\n){
16 |
17 | // [33,33):lambda x: x.notnull()
18 | notNull = languages.apply();
19 |
--------------------------------------------------------------------------------
/inline-completions/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/jupyter-kernel-execution-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "dbaeumer.vscode-eslint",
4 | "ms-toolsai.jupyter"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/jupyter-kernel-execution-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "search.exclude": {
3 | "out": true
4 | },
5 | "typescript.tsc.autoDetect": "off"
6 | }
7 |
--------------------------------------------------------------------------------
/jupyter-kernel-execution-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "compile",
9 | "problemMatcher": ["$tsc"],
10 | "group": "build"
11 | }
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/jupyter-kernel-execution-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | src/**
5 | .gitignore
6 | .yarnrc
7 | vsc-extension-quickstart.md
8 | **/tsconfig.json
9 | **/.eslintrc.json
10 | **/*.map
11 | **/*.ts
12 | **/*.tsbuildinfo
13 |
--------------------------------------------------------------------------------
/jupyter-kernel-execution-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": [
6 | "es2020"
7 | ],
8 | "outDir": "out",
9 | "sourceMap": true,
10 | "strict": true,
11 | "rootDir": "src"
12 | },
13 | "exclude": [
14 | "node_modules",
15 | ".vscode-test"
16 | ]
17 | }
--------------------------------------------------------------------------------
/jupyter-server-provider-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "dbaeumer.vscode-eslint",
4 | "ms-toolsai.jupyter"
5 | ]
6 | }
7 |
--------------------------------------------------------------------------------
/jupyter-server-provider-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "search.exclude": {
3 | "out": true
4 | },
5 | "typescript.tsc.autoDetect": "off"
6 | }
7 |
--------------------------------------------------------------------------------
/jupyter-server-provider-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "compile",
9 | "problemMatcher": ["$tsc"],
10 | "group": "build"
11 | }
12 | ]
13 | }
14 |
--------------------------------------------------------------------------------
/jupyter-server-provider-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | src/**
5 | .gitignore
6 | .yarnrc
7 | vsc-extension-quickstart.md
8 | **/tsconfig.json
9 | **/.eslintrc.json
10 | **/*.map
11 | **/*.ts
12 | **/*.tsbuildinfo
13 |
--------------------------------------------------------------------------------
/jupyter-server-provider-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/jupyter-server-provider-sample/demo.gif
--------------------------------------------------------------------------------
/jupyter-server-provider-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": [
6 | "es2020"
7 | ],
8 | "outDir": "out",
9 | "sourceMap": true,
10 | "strict": true,
11 | "rootDir": "src"
12 | },
13 | "exclude": [
14 | "node_modules",
15 | ".vscode-test"
16 | ]
17 | }
--------------------------------------------------------------------------------
/l10n-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | dist
3 | node_modules
4 | .vscode-test/
5 | *.vsix
6 |
7 | # Ignore generated files
8 | l10n/bundle.l10n.json
9 | l10n/bundle.l10n.qps-ploc.json
10 | package.nls.qps-ploc.json
11 |
--------------------------------------------------------------------------------
/l10n-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/l10n-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/l10n-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/l10n-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | src/**
4 | .gitignore
5 | .yarnrc
6 | vsc-extension-quickstart.md
7 | **/tsconfig.json
8 | **/.eslintrc.json
9 | **/*.map
10 | **/*.ts
11 |
--------------------------------------------------------------------------------
/l10n-sample/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to the "l10n-sample" extension will be documented in this file.
4 |
5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6 |
7 | ## [Unreleased]
8 |
9 | - Initial release
--------------------------------------------------------------------------------
/l10n-sample/l10n/bundle.l10n.ja.json:
--------------------------------------------------------------------------------
1 | {
2 | "Bye": "さようなら",
3 | "Hello": "こんにちは",
4 | "Hello {0}": "こんにちは {0}",
5 | "Hello {done}":"こんにちは {done}"
6 | }
7 |
--------------------------------------------------------------------------------
/l10n-sample/package.nls.ja.json:
--------------------------------------------------------------------------------
1 | {
2 | "extension.sayHello.title": "こんにちは",
3 | "extension.sayBye.title": "さようなら"
4 | }
5 |
--------------------------------------------------------------------------------
/l10n-sample/package.nls.json:
--------------------------------------------------------------------------------
1 | {
2 | "extension.sayHello.title": "Hello",
3 | "extension.sayBye.title": "Bye"
4 | }
5 |
--------------------------------------------------------------------------------
/l10n-sample/src/cli.ts:
--------------------------------------------------------------------------------
1 | import * as l10n from '@vscode/l10n';
2 |
3 | if (process.env['EXTENSION_BUNDLE_PATH']) {
4 | l10n.config({
5 | fsPath: process.env['EXTENSION_BUNDLE_PATH']
6 | });
7 | }
8 |
9 | const message = l10n.t('Hello {0}', 'CLI');
10 | console.log(message + '\n');
11 |
--------------------------------------------------------------------------------
/language-configuration-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/language-configuration-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/lm-api-tutorial/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint",
6 | "ms-vscode.extension-test-runner"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/lm-api-tutorial/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
12 |
--------------------------------------------------------------------------------
/lm-api-tutorial/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/lsp-embedded-language-service/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | client/server
4 | .vscode-test
--------------------------------------------------------------------------------
/lsp-embedded-language-service/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false,
3 | "typescript.tsc.autoDetect": "off",
4 | "typescript.preferences.quoteStyle": "single"
5 | }
--------------------------------------------------------------------------------
/lsp-embedded-language-service/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | **/*.ts
3 | **/*.map
4 | .gitignore
5 | **/tsconfig.json
6 | **/tsconfig.base.json
7 | contributing.md
8 | .travis.yml
9 | client/node_modules/**
10 | !client/node_modules/vscode-jsonrpc/**
11 | !client/node_modules/vscode-languageclient/**
12 | !client/node_modules/vscode-languageserver-protocol/**
13 | !client/node_modules/vscode-languageserver-types/**
14 | !client/node_modules/semver/**
15 |
--------------------------------------------------------------------------------
/lsp-embedded-language-service/client/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lsp-sample-client",
3 | "description": "VSCode part of a language server",
4 | "author": "Microsoft Corporation",
5 | "license": "MIT",
6 | "version": "0.0.1",
7 | "publisher": "vscode",
8 | "repository": {
9 | "type": "git",
10 | "url": "https://github.com/Microsoft/vscode-extension-samples"
11 | },
12 | "engines": {
13 | "vscode": "^1.43.0"
14 | },
15 | "dependencies": {
16 | "vscode-languageclient": "^6.1.3"
17 | },
18 | "devDependencies": {
19 | "@types/node": "^20",
20 | "@types/vscode": "^1.43.0"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/lsp-embedded-language-service/client/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": ["src"],
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/lsp-embedded-language-service/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2020",
4 | "lib": ["es2020"],
5 | "module": "commonjs",
6 | "moduleResolution": "node",
7 | "sourceMap": true,
8 | "strict": true,
9 | "outDir": "out",
10 | "rootDir": "src"
11 | },
12 | "include": ["src"],
13 | "exclude": ["node_modules", ".vscode-test"]
14 | }
15 |
--------------------------------------------------------------------------------
/lsp-embedded-language-service/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": [
11 | "src"
12 | ],
13 | "exclude": [
14 | "node_modules",
15 | ".vscode-test"
16 | ],
17 | "references": [
18 | { "path": "./client" },
19 | { "path": "./server" }
20 | ]
21 | }
--------------------------------------------------------------------------------
/lsp-embedded-request-forwarding/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | client/server
4 | .vscode-test
--------------------------------------------------------------------------------
/lsp-embedded-request-forwarding/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false,
3 | "typescript.tsc.autoDetect": "off",
4 | "typescript.preferences.quoteStyle": "single"
5 | }
--------------------------------------------------------------------------------
/lsp-embedded-request-forwarding/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | **/*.ts
3 | **/*.map
4 | .gitignore
5 | **/tsconfig.json
6 | **/tsconfig.base.json
7 | contributing.md
8 | .travis.yml
9 | client/node_modules/**
10 | !client/node_modules/vscode-jsonrpc/**
11 | !client/node_modules/vscode-languageclient/**
12 | !client/node_modules/vscode-languageserver-protocol/**
13 | !client/node_modules/vscode-languageserver-types/**
14 | !client/node_modules/semver/**
15 |
--------------------------------------------------------------------------------
/lsp-embedded-request-forwarding/client/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": ["src"],
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/lsp-embedded-request-forwarding/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lsp-sample-server",
3 | "description": "Example implementation of a language server in node.",
4 | "version": "1.0.0",
5 | "author": "Microsoft Corporation",
6 | "license": "MIT",
7 | "engines": {
8 | "node": "*"
9 | },
10 | "repository": {
11 | "type": "git",
12 | "url": "https://github.com/Microsoft/vscode-extension-samples"
13 | },
14 | "dependencies": {
15 | "vscode-html-languageservice": "^3.0.3",
16 | "vscode-languageserver": "^6.1.1",
17 | "vscode-languageserver-textdocument": "^1.0.1"
18 | },
19 | "scripts": {}
20 | }
21 |
--------------------------------------------------------------------------------
/lsp-embedded-request-forwarding/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2020",
4 | "lib": ["es2020"],
5 | "module": "commonjs",
6 | "moduleResolution": "node",
7 | "sourceMap": true,
8 | "strict": true,
9 | "outDir": "out",
10 | "rootDir": "src"
11 | },
12 | "include": ["src"],
13 | "exclude": ["node_modules", ".vscode-test"]
14 | }
15 |
--------------------------------------------------------------------------------
/lsp-embedded-request-forwarding/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": [
11 | "src"
12 | ],
13 | "exclude": [
14 | "node_modules",
15 | ".vscode-test"
16 | ],
17 | "references": [
18 | { "path": "./client" },
19 | { "path": "./server" }
20 | ]
21 | }
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | client/server
4 | .vscode-test
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | **/*.ts
3 | **/*.map
4 | .gitignore
5 | **/tsconfig.json
6 | **/tsconfig.base.json
7 | contributing.md
8 | .travis.yml
9 | client/node_modules/**
10 | !client/node_modules/vscode-jsonrpc/**
11 | !client/node_modules/vscode-languageclient/**
12 | !client/node_modules/vscode-languageserver-protocol/**
13 | !client/node_modules/vscode-languageserver-types/**
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/client/testFixture/completion.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/lsp-log-streaming-sample/client/testFixture/completion.txt
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/client/testFixture/diagnostics.txt:
--------------------------------------------------------------------------------
1 | ANY browsers, ANY OS.
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/client/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.base.json",
3 | "compilerOptions": {
4 | "outDir": "out",
5 | "rootDir": "src",
6 | "sourceMap": true
7 | },
8 | "include": ["src"],
9 | "exclude": ["node_modules"]
10 | }
11 |
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/lsp-log-streaming-sample/demo.gif
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/scripts/e2e.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export CODE_TESTS_PATH="$(pwd)/client/out/test"
4 | export CODE_TESTS_WORKSPACE="$(pwd)/client/testFixture"
5 |
6 | node "$(pwd)/client/out/test/runTest.js"
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lsp-sample-server",
3 | "description": "Example implementation of a language server in node.",
4 | "version": "1.0.0",
5 | "author": "Microsoft Corporation",
6 | "license": "MIT",
7 | "engines": {
8 | "node": "*"
9 | },
10 | "repository": {
11 | "type": "git",
12 | "url": "https://github.com/Microsoft/vscode-extension-samples"
13 | },
14 | "dependencies": {
15 | "vscode-languageserver-textdocument": "1.0.8",
16 | "vscode-languageserver": "8.1.0-next.6"
17 | },
18 | "scripts": {}
19 | }
20 |
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.base.json",
3 | "compilerOptions": {
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "module": "commonjs",
7 | "moduleResolution": "node",
8 | "sourceMap": true,
9 | "strict": true,
10 | "outDir": "out",
11 | "rootDir": "src"
12 | },
13 | "include": ["src"],
14 | "exclude": ["node_modules"]
15 | }
16 |
--------------------------------------------------------------------------------
/lsp-log-streaming-sample/tsconfig.base.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2019",
5 | "lib": ["ES2019"],
6 | "noImplicitAny": true,
7 | "noImplicitReturns": true,
8 | "noUnusedLocals": true,
9 | "noUnusedParameters": true
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/lsp-multi-server-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | client/server
--------------------------------------------------------------------------------
/lsp-multi-server-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/lsp-multi-server-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | // List of configurations. Add new configurations or edit existing ones.
4 | "configurations": [
5 | {
6 | "type": "extensionHost",
7 | "request": "launch",
8 | "name": "Launch Client",
9 | "runtimeExecutable": "${execPath}",
10 | "args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11 | "autoAttachChildProcesses": true,
12 | "sourceMaps": true,
13 | "outFiles": ["${workspaceRoot}/client/out/**/*.js"],
14 | "preLaunchTask": "npm: watch"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/lsp-multi-server-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false,
3 | "typescript.tsc.autoDetect": "off",
4 | "typescript.preferences.quoteStyle": "single"
5 | }
--------------------------------------------------------------------------------
/lsp-multi-server-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | **/*.ts
3 | **/*.map
4 | .gitignore
5 | **/tsconfig.json
6 | **/tsconfig.base.json
7 | contributing.md
8 | .travis.yml
9 | client/node_modules/**
10 | !client/node_modules/vscode-jsonrpc/**
11 | !client/node_modules/vscode-languageclient/**
12 | !client/node_modules/vscode-languageserver-protocol/**
13 | !client/node_modules/vscode-languageserver-types/**
14 | !client/node_modules/{minimatch,brace-expansion,concat-map,balanced-match}/**
15 | !client/node_modules/{semver,lru-cache,yallist}/**
16 |
--------------------------------------------------------------------------------
/lsp-multi-server-sample/client/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lsp-sample-multi-server-client-part",
3 | "description": "VSCode part of a language server",
4 | "author": "Microsoft Corporation",
5 | "license": "MIT",
6 | "version": "0.0.1",
7 | "publisher": "vscode",
8 | "repository": {
9 | "type": "git",
10 | "url": "https://github.com/Microsoft/vscode-extension-samples"
11 | },
12 | "engines": {
13 | "vscode": "^1.52.0"
14 | },
15 | "scripts": {},
16 | "dependencies": {
17 | "vscode-languageclient": "^7.0.0"
18 | },
19 | "devDependencies": {
20 | "@types/vscode": "^1.52.0"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/lsp-multi-server-sample/client/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": ["src"],
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/lsp-multi-server-sample/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lsp-sample-server",
3 | "description": "Example implementation of a language server in node.",
4 | "version": "1.0.0",
5 | "author": "Microsoft Corporation",
6 | "license": "MIT",
7 | "engines": {
8 | "node": "*"
9 | },
10 | "repository": {
11 | "type": "git",
12 | "url": "https://github.com/Microsoft/vscode-extension-samples"
13 | },
14 | "dependencies": {
15 | "vscode-languageserver": "^7.0.0",
16 | "vscode-languageserver-textdocument": "^1.0.1"
17 | },
18 | "scripts": {}
19 | }
20 |
--------------------------------------------------------------------------------
/lsp-multi-server-sample/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": ["src"],
11 | "exclude": ["node_modules"]
12 | }
13 |
--------------------------------------------------------------------------------
/lsp-multi-server-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": [
11 | "src"
12 | ],
13 | "exclude": [
14 | "node_modules",
15 | ".vscode-test"
16 | ],
17 | "references": [
18 | { "path": "./client" },
19 | { "path": "./server" }
20 | ]
21 | }
--------------------------------------------------------------------------------
/lsp-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | client/server
4 | .vscode-test
--------------------------------------------------------------------------------
/lsp-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/lsp-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false,
3 | "typescript.tsc.autoDetect": "off",
4 | "typescript.preferences.quoteStyle": "single",
5 | "editor.codeActionsOnSave": {
6 | "source.fixAll.eslint": "explicit"
7 | }
8 | }
--------------------------------------------------------------------------------
/lsp-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | **/*.ts
3 | **/*.map
4 | .gitignore
5 | **/tsconfig.json
6 | **/tsconfig.base.json
7 | contributing.md
8 | .travis.yml
9 | client/node_modules/**
10 | !client/node_modules/vscode-jsonrpc/**
11 | !client/node_modules/vscode-languageclient/**
12 | !client/node_modules/vscode-languageserver-protocol/**
13 | !client/node_modules/vscode-languageserver-types/**
14 | !client/node_modules/{minimatch,brace-expansion,concat-map,balanced-match}/**
15 | !client/node_modules/{semver,lru-cache,yallist}/**
--------------------------------------------------------------------------------
/lsp-sample/client/testFixture/completion.txt:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/lsp-sample/client/testFixture/completion.txt
--------------------------------------------------------------------------------
/lsp-sample/client/testFixture/diagnostics.txt:
--------------------------------------------------------------------------------
1 | ANY browsers, ANY OS.
--------------------------------------------------------------------------------
/lsp-sample/client/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": ["src"],
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/lsp-sample/scripts/e2e.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env bash
2 |
3 | export CODE_TESTS_PATH="$(pwd)/client/out/test"
4 | export CODE_TESTS_WORKSPACE="$(pwd)/client/testFixture"
5 |
6 | node "$(pwd)/client/out/test/runTest"
--------------------------------------------------------------------------------
/lsp-sample/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lsp-sample-server",
3 | "description": "Example implementation of a language server in node.",
4 | "version": "1.0.0",
5 | "author": "Microsoft Corporation",
6 | "license": "MIT",
7 | "engines": {
8 | "node": "*"
9 | },
10 | "repository": {
11 | "type": "git",
12 | "url": "https://github.com/Microsoft/vscode-extension-samples"
13 | },
14 | "dependencies": {
15 | "vscode-languageserver": "^9.0.1",
16 | "vscode-languageserver-textdocument": "^1.0.11"
17 | },
18 | "scripts": {}
19 | }
20 |
--------------------------------------------------------------------------------
/lsp-sample/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2020",
4 | "lib": ["es2020"],
5 | "module": "commonjs",
6 | "moduleResolution": "node",
7 | "sourceMap": true,
8 | "strict": true,
9 | "outDir": "out",
10 | "rootDir": "src"
11 | },
12 | "include": ["src"],
13 | "exclude": ["node_modules", ".vscode-test"]
14 | }
15 |
--------------------------------------------------------------------------------
/lsp-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "sourceMap": true
9 | },
10 | "include": [
11 | "src"
12 | ],
13 | "exclude": [
14 | "node_modules",
15 | ".vscode-test"
16 | ],
17 | "references": [
18 | { "path": "./client" },
19 | { "path": "./server" }
20 | ]
21 | }
--------------------------------------------------------------------------------
/lsp-user-input-sample/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | client/out
3 | client/node_modules
4 | server/out
5 | server/node_modules
--------------------------------------------------------------------------------
/lsp-user-input-sample/client/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.base.json",
3 | "compilerOptions": {
4 | "module": "commonjs",
5 | "target": "es2020",
6 | "outDir": "out",
7 | "rootDir": "src",
8 | "lib": [ "es2017" ],
9 | "sourceMap": true
10 | },
11 | "include": [
12 | "src"
13 | ],
14 | "exclude": [
15 | "node_modules"
16 | ]
17 | }
--------------------------------------------------------------------------------
/lsp-user-input-sample/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "server",
3 | "version": "1.0.0",
4 | "private": true,
5 | "author": "Microsoft Corporation",
6 | "license": "MIT",
7 | "repository": {
8 | "type": "git",
9 | "url": "https://github.com/Microsoft/vscode-extension-samples.git"
10 | },
11 | "bugs": {
12 | "url": "https://github.com/Microsoft/vscode-extension-samples/issues"
13 | },
14 | "engines": {
15 | "node": "*"
16 | },
17 | "dependencies": {
18 | "vscode-uri": "^3.0.8",
19 | "vscode-languageserver": "^9.0.1",
20 | "vscode-languageserver-textdocument": "^1.0.11"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/lsp-user-input-sample/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "../tsconfig.base.json",
3 | "compilerOptions": {
4 | "target": "es2020",
5 | "module": "commonjs",
6 | "moduleResolution": "node",
7 | "sourceMap": true,
8 | "outDir": "out",
9 | "rootDir": "src",
10 | "lib": [ "es2017" ]
11 | },
12 | "include": [
13 | "src"
14 | ],
15 | "exclude": [
16 | "node_modules"
17 | ]
18 | }
--------------------------------------------------------------------------------
/lsp-user-input-sample/tsconfig.base.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "noImplicitAny": true,
4 | "noImplicitReturns": true,
5 | "noUnusedLocals": true,
6 | "noUnusedParameters": true,
7 | "strict": true
8 | }
9 | }
--------------------------------------------------------------------------------
/lsp-user-input-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "./tsconfig.base.json",
3 | "compilerOptions": {
4 | "module": "commonjs",
5 | "target": "es2020",
6 | "lib": ["es2020"],
7 | "outDir": "out",
8 | "rootDir": "src",
9 | "sourceMap": true
10 | },
11 | "include": [
12 | "src"
13 | ],
14 | "exclude": [
15 | "node_modules"
16 | ],
17 | "references": [
18 | { "path": "./client" },
19 | { "path": "./server" }
20 | ]
21 | }
--------------------------------------------------------------------------------
/lsp-web-extension-sample/.gitignore:
--------------------------------------------------------------------------------
1 | dist
2 | node_modules
3 | client/server
4 | .vscode-test-web
--------------------------------------------------------------------------------
/lsp-web-extension-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 | // List of extensions which should be recommended for users of this workspace.
5 | "recommendations": [
6 | "dbaeumer.vscode-eslint",
7 | "amodio.tsl-problem-matcher"
8 | ]
9 | }
--------------------------------------------------------------------------------
/lsp-web-extension-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false,
3 | "typescript.tsc.autoDetect": "off",
4 | "typescript.preferences.quoteStyle": "single",
5 | "editor.codeActionsOnSave": {
6 | "source.fixAll.eslint": "explicit"
7 | }
8 | }
--------------------------------------------------------------------------------
/lsp-web-extension-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | **/*.ts
3 | **/*.map
4 | .gitignore
5 | **/tsconfig.json
6 | **/tsconfig.base.json
7 | contributing.md
8 | .travis.yml
9 | **/node_modules/**
10 |
--------------------------------------------------------------------------------
/lsp-web-extension-sample/client/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020", "WebWorker"],
6 | "rootDir": "src",
7 | "sourceMap": true
8 | },
9 | "include": ["src"],
10 | "exclude": ["node_modules", ".vscode-test-web"]
11 | }
12 |
--------------------------------------------------------------------------------
/lsp-web-extension-sample/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "lsp-web-extension-sample-server",
3 | "description": "Example implementation of a language server in a web extension.",
4 | "version": "1.0.0",
5 | "author": "Microsoft Corporation",
6 | "license": "MIT",
7 | "engines": {
8 | "node": "*"
9 | },
10 | "repository": {
11 | "type": "git",
12 | "url": "https://github.com/Microsoft/vscode-extension-samples"
13 | },
14 | "dependencies": {
15 | "vscode-languageserver": "^9.0.1",
16 | "vscode-languageserver-textdocument": "^1.0.11"
17 | },
18 | "scripts": {}
19 | }
20 |
--------------------------------------------------------------------------------
/lsp-web-extension-sample/server/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "target": "es2020",
4 | "lib": ["es2020", "WebWorker"],
5 | "module": "commonjs",
6 | "moduleResolution": "node",
7 | "sourceMap": true,
8 | "strict": true
9 | },
10 | "include": ["src"],
11 | "exclude": ["node_modules", ".vscode-test-web"]
12 | }
13 |
--------------------------------------------------------------------------------
/lsp-web-extension-sample/test-data/test.txt:
--------------------------------------------------------------------------------
1 | Here is a hex color: #e244ff
--------------------------------------------------------------------------------
/mcp-extension-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
6 | *.d.ts
7 |
--------------------------------------------------------------------------------
/mcp-extension-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/mcp-extension-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/node_modules/.yarn-integrity:
--------------------------------------------------------------------------------
1 | {
2 | "systemParams": "darwin-x64-72",
3 | "modulesFolders": [],
4 | "flags": [],
5 | "linkedModules": [],
6 | "topLevelPatterns": [],
7 | "lockfileEntries": {},
8 | "files": [],
9 | "artifacts": {}
10 | }
--------------------------------------------------------------------------------
/nodefs-provider-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/nodefs-provider-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/nodefs-provider-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | "typescript.tsc.autoDetect": "off" // Turn off tsc task auto detection since we have the necessary task as npm scripts
10 | }
--------------------------------------------------------------------------------
/nodefs-provider-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/nodefs-provider-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 | tslint.json
--------------------------------------------------------------------------------
/nodefs-provider-sample/README.md:
--------------------------------------------------------------------------------
1 | # nodefs-provider-sample
2 |
3 | A sample extension that implements a file system provider for the scheme `datei://` using node.js FS APIs.
4 |
5 | ## Setup
6 |
7 | * create a `.code-workspace` file that contains an entry for a local folder on your disk using the `datei://` scheme
8 | * open the workspace file
9 |
10 | Example:
11 |
12 | ```json
13 | {
14 | "folders": [
15 | {
16 | "uri": "datei://"
17 | }
18 | ]
19 | }
20 | ```
--------------------------------------------------------------------------------
/notebook-extend-markdown-renderer-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint",
6 | "amodio.tsl-problem-matcher"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/notebook-extend-markdown-renderer-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
12 |
--------------------------------------------------------------------------------
/notebook-extend-markdown-renderer-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | src/**
5 | .gitignore
6 | .yarnrc
7 | vsc-extension-quickstart.md
8 | **/tsconfig.json
9 | **/.eslintrc.json
10 | **/*.map
11 | **/*.ts
12 | **/*.tsbuildinfo
13 |
--------------------------------------------------------------------------------
/notebook-extend-markdown-renderer-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "rootDir": "src",
4 | "outDir": "out",
5 | "module": "esnext",
6 | "target": "es2020",
7 | "lib": [
8 | "es2020",
9 | "dom"
10 | ],
11 | "moduleResolution": "node",
12 | "sourceMap": true,
13 | "strict": true
14 | }
15 | }
--------------------------------------------------------------------------------
/notebook-format-code-action-sample/.gitignore:
--------------------------------------------------------------------------------
1 | *.vsix
2 | package-lock.json
3 |
--------------------------------------------------------------------------------
/notebook-format-code-action-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/notebook-format-code-action-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/notebook-format-code-action-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/notebook-format-code-action-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | src/**
4 | .gitignore
5 | .yarnrc
6 | vsc-extension-quickstart.md
7 | **/tsconfig.json
8 | **/.eslintrc.json
9 | **/*.map
10 | **/*.ts
11 |
--------------------------------------------------------------------------------
/notebook-format-code-action-sample/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to the "nb-codeactions" extension will be documented in this file.
4 |
5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6 |
7 | ## [Unreleased]
8 |
9 | - Initial release
--------------------------------------------------------------------------------
/notebook-format-code-action-sample/README.md:
--------------------------------------------------------------------------------
1 | # nb-codeactions README
2 |
--------------------------------------------------------------------------------
/notebook-format-code-action-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": [
6 | "es2020"
7 | ],
8 | "outDir": "out",
9 | "sourceMap": true,
10 | "strict": true,
11 | "rootDir": "src"
12 | },
13 | "exclude": [
14 | "node_modules",
15 | ".vscode-test"
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/notebook-renderer-react-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint",
6 | "amodio.tsl-problem-matcher"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/notebook-renderer-react-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
12 |
--------------------------------------------------------------------------------
/notebook-renderer-react-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | src/**
5 | .gitignore
6 | .yarnrc
7 | vsc-extension-quickstart.md
8 | **/tsconfig.json
9 | **/.eslintrc.json
10 | **/*.map
11 | **/*.ts
12 | **/*.tsbuildinfo
13 |
--------------------------------------------------------------------------------
/notebook-renderer-react-sample/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to the "notebook-renderer-react-sample" extension will be documented in this file.
4 |
5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6 |
7 | ## [Unreleased]
8 |
9 | - Initial release
--------------------------------------------------------------------------------
/notebook-renderer-react-sample/src/client/css.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.css' {
2 | const classes: Record;
3 | export = classes;
4 | }
5 |
--------------------------------------------------------------------------------
/notebook-renderer-react-sample/src/client/style.css:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/notebook-renderer-react-sample/src/client/style.css
--------------------------------------------------------------------------------
/notebook-renderer-react-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "esnext",
4 | "target": "ES2020",
5 | "moduleResolution": "node",
6 | "sourceMap": true,
7 | "strict": true,
8 | "jsx": "react",
9 | // noEmit prevents the default tsc from building this--we use webpack instead
10 | "noEmit": true,
11 | "rootDir": ".",
12 | "types": [
13 | "webpack-env",
14 | "vscode-notebook-renderer"
15 | ],
16 | "allowSyntheticDefaultImports": true
17 | },
18 | "include": [
19 | "src/**/*"
20 | ]
21 | }
--------------------------------------------------------------------------------
/notebook-renderer-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint",
6 | "amodio.tsl-problem-matcher"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/notebook-renderer-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
12 |
--------------------------------------------------------------------------------
/notebook-renderer-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0.0",
3 | "tasks": [
4 | {
5 | "type": "npm",
6 | "script": "webpack",
7 | "problemMatcher": [
8 | "$ts-webpack"
9 | ],
10 | "label": "npm: webpack",
11 | "detail": "webpack --mode development"
12 | }
13 | ]
14 | }
--------------------------------------------------------------------------------
/notebook-renderer-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | src/**
5 | .gitignore
6 | .yarnrc
7 | vsc-extension-quickstart.md
8 | **/tsconfig.json
9 | **/.eslintrc.json
10 | **/*.map
11 | **/*.ts
12 | **/*.tsbuildinfo
13 | node_modules/**
14 | notebook-renderer-sample.gif
15 | sample/**
16 | *.vsix
--------------------------------------------------------------------------------
/notebook-renderer-sample/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Change Log
2 |
3 | All notable changes to the "notebook-renderer-sample" extension will be documented in this file.
4 |
5 | Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6 |
7 | ## [Unreleased]
8 |
9 | - Initial release
--------------------------------------------------------------------------------
/notebook-renderer-sample/notebook-renderer-sample.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/notebook-renderer-sample/notebook-renderer-sample.gif
--------------------------------------------------------------------------------
/notebook-renderer-sample/src/css.d.ts:
--------------------------------------------------------------------------------
1 | declare module '*.css' {
2 | const classes: Record;
3 | export = classes;
4 | }
5 |
--------------------------------------------------------------------------------
/notebook-renderer-sample/src/style.css:
--------------------------------------------------------------------------------
1 | .issues-list {
2 | width: 100px;
3 | }
4 |
--------------------------------------------------------------------------------
/notebook-renderer-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "rootDir": "src",
4 | "outDir": "out",
5 | "module": "esnext",
6 | "target": "es2020",
7 | "lib": ["es2020", "dom"],
8 | "moduleResolution": "node",
9 | "sourceMap": true,
10 | "strict": true /* enable all strict type-checking options */
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/notebook-serializer-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "dbaeumer.vscode-eslint"
4 | ]
5 | }
6 |
--------------------------------------------------------------------------------
/notebook-serializer-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "search.exclude": {
3 | "out": true
4 | },
5 | "typescript.tsc.autoDetect": "off"
6 | }
7 |
--------------------------------------------------------------------------------
/notebook-serializer-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | src/**
5 | .gitignore
6 | .yarnrc
7 | vsc-extension-quickstart.md
8 | **/tsconfig.json
9 | **/.eslintrc.json
10 | **/*.map
11 | **/*.ts
12 | **/*.tsbuildinfo
13 |
--------------------------------------------------------------------------------
/notebook-serializer-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": [
6 | "es2020"
7 | ],
8 | "outDir": "out",
9 | "sourceMap": true,
10 | "strict": true,
11 | "rootDir": "src"
12 | },
13 | "exclude": [
14 | "node_modules",
15 | ".vscode-test"
16 | ]
17 | }
--------------------------------------------------------------------------------
/notifications-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/notifications-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/notifications-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/notifications-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | src/**
4 | .gitignore
5 | .yarnrc
6 | vsc-extension-quickstart.md
7 | **/tsconfig.json
8 | **/.eslintrc.json
9 | **/*.map
10 | **/*.ts
11 |
--------------------------------------------------------------------------------
/notifications-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/notifications-sample/demo.gif
--------------------------------------------------------------------------------
/product-icon-theme-sample/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | out/
3 |
--------------------------------------------------------------------------------
/product-icon-theme-sample/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/product-icon-theme-sample/demo.png
--------------------------------------------------------------------------------
/product-icon-theme-sample/icons/expando-collapsed.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/product-icon-theme-sample/icons/expando-expanded.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/product-icon-theme-sample/icons/explorer-view.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/product-icon-theme-sample/icons/folding-collapsed.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/product-icon-theme-sample/icons/folding-expanded.svg:
--------------------------------------------------------------------------------
1 |
4 |
--------------------------------------------------------------------------------
/product-icon-theme-sample/icons/smiley.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/product-icon-theme-sample/theme/vscode-10.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/product-icon-theme-sample/theme/vscode-10.woff
--------------------------------------------------------------------------------
/progress-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test
--------------------------------------------------------------------------------
/progress-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/progress-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/progress-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | typings/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/progress-sample/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/progress-sample/preview.gif
--------------------------------------------------------------------------------
/progress-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules"]
12 | }
13 |
--------------------------------------------------------------------------------
/proposed-api-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/proposed-api-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/proposed-api-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/quickinput-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | *.vsix
4 |
--------------------------------------------------------------------------------
/quickinput-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/quickinput-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/quickinput-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/quickinput-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | out/**/*.map
3 | src/**
4 | .gitignore
5 | tsconfig.json
6 | tslint.json
--------------------------------------------------------------------------------
/quickinput-sample/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/quickinput-sample/preview.gif
--------------------------------------------------------------------------------
/quickinput-sample/resources/dark/add.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/quickinput-sample/resources/light/add.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/semantic-tokens-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/semantic-tokens-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/semantic-tokens-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/semantic-tokens-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/semantic-tokens-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 | tslint.json
--------------------------------------------------------------------------------
/semantic-tokens-sample/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/semantic-tokens-sample/demo.png
--------------------------------------------------------------------------------
/semantic-tokens-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | "strict": true
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/shell-integration-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint",
6 | "ms-vscode.extension-test-runner"
7 | ]
8 | }
9 |
--------------------------------------------------------------------------------
/shell-integration-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/shell-integration-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/shell-integration-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | src/**
4 | .gitignore
5 | .yarnrc
6 | vsc-extension-quickstart.md
7 | **/tsconfig.json
8 | **/.eslintrc.json
9 | **/*.map
10 | **/*.ts
11 | **/.vscode-test.*
12 |
--------------------------------------------------------------------------------
/shell-integration-sample/README.md:
--------------------------------------------------------------------------------
1 | # shell-integration-sample
2 |
3 | This sample demonstrates how to use the `Terminal.shellIntegration` extension API. It contributes a terminal profile which when launched will track the open editor and change automatically to the directory of the file being edited.
4 |
--------------------------------------------------------------------------------
/snippet-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/snippet-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/snippet-sample/README.md:
--------------------------------------------------------------------------------
1 | # Snippet Sample
2 |
3 | This is the source code for [Snippet Guide](https://code.visualstudio.com/api/language-extensions/snippet-guide).
4 |
5 | ## VS Code API
6 |
7 | ### Contribution Points
8 |
9 | - [`contributes.snippets`](https://code.visualstudio.com/api/references/contribution-points#contributes.snippets)
10 |
11 | ## Running the Sample
12 |
13 | - Run the `Run Extension` target in the Debug View
14 | - When you type `log` in a JavaScript file, you would see the snippet `Print to console`.
--------------------------------------------------------------------------------
/snippet-sample/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "snippet-sample",
3 | "displayName": "Snippet Sample",
4 | "description": "Snippet Sample",
5 | "version": "0.0.1",
6 | "publisher": "vscode-samples",
7 | "engines": {
8 | "vscode": "^1.28.0"
9 | },
10 | "categories": [
11 | "Snippets"
12 | ],
13 | "contributes": {
14 | "snippets": [
15 | {
16 | "language": "javascript",
17 | "path": "./snippets.json"
18 | }
19 | ]
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/snippet-sample/snippets.json:
--------------------------------------------------------------------------------
1 | {
2 | "Print to console": {
3 | "prefix": "log",
4 | "body": [
5 | "console.log('$1');",
6 | "$2"
7 | ],
8 | "description": "Log output to console"
9 | }
10 | }
--------------------------------------------------------------------------------
/source-control-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/source-control-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/source-control-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/source-control-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/source-control-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | out/**/*.map
5 | src/**
6 | .gitignore
7 | tsconfig.json
8 | vsc-extension-quickstart.md
9 | tslint.json
--------------------------------------------------------------------------------
/source-control-sample/resources/icons/dark/check.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/source-control-sample/resources/icons/dark/discard.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/source-control-sample/resources/icons/light/check.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/source-control-sample/resources/icons/light/discard.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/source-control-sample/resources/images/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/source-control-sample/resources/images/demo.gif
--------------------------------------------------------------------------------
/source-control-sample/resources/images/multi-workspace-folder.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/source-control-sample/resources/images/multi-workspace-folder.gif
--------------------------------------------------------------------------------
/source-control-sample/resources/images/quick_diff.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/source-control-sample/resources/images/quick_diff.gif
--------------------------------------------------------------------------------
/source-control-sample/resources/images/source_control_view.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/source-control-sample/resources/images/source_control_view.PNG
--------------------------------------------------------------------------------
/source-control-sample/resources/images/status_bar.PNG:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/source-control-sample/resources/images/status_bar.PNG
--------------------------------------------------------------------------------
/source-control-sample/src/fiddleConfiguration.ts:
--------------------------------------------------------------------------------
1 | export interface FiddleConfiguration {
2 | readonly slug: string;
3 | readonly version?: number;
4 | readonly downloaded: boolean;
5 | }
6 |
7 | export function parseFiddleId(id: string): FiddleConfiguration {
8 | const idFragments = id.split('/');
9 | const fiddleSlug = idFragments[0];
10 | const fiddleVersion = idFragments.length > 1 ? parseInt(id.split('/')[1]) : undefined;
11 |
12 | return { slug: fiddleSlug, version: fiddleVersion, downloaded: false };
13 | }
--------------------------------------------------------------------------------
/source-control-sample/src/util.ts:
--------------------------------------------------------------------------------
1 | export function firstIndex(array: readonly T[], fn: (t: T) => boolean): number {
2 | for (let i = 0; i < array.length; i++) {
3 | if (fn(array[i])) {
4 | return i;
5 | }
6 | }
7 |
8 | return -1;
9 | }
10 |
11 | export const UTF8 = 'utf8';
--------------------------------------------------------------------------------
/source-control-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src"
9 | },
10 | "exclude": [
11 | "node_modules",
12 | ".vscode-test"
13 | ]
14 | }
--------------------------------------------------------------------------------
/statusbar-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/statusbar-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/statusbar-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that compiles the extension and then opens it inside a new window
2 | {
3 | "version": "0.2.0",
4 | "configurations": [
5 | {
6 | "name": "Launch Extension",
7 | "type": "extensionHost",
8 | "request": "launch",
9 | "runtimeExecutable": "${execPath}",
10 | "args": [
11 | "--extensionDevelopmentPath=${workspaceRoot}"
12 | ],
13 | "stopOnEntry": false,
14 | "sourceMaps": true,
15 | "outFiles": [
16 | "${workspaceRoot}/out/**/*.js"
17 | ],
18 | "preLaunchTask": "npm: watch"
19 | }
20 | ]
21 | }
22 |
--------------------------------------------------------------------------------
/statusbar-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/statusbar-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | typings/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/statusbar-sample/README.md:
--------------------------------------------------------------------------------
1 | # Status Bar Sample
2 |
3 | This is a sample extension that adds a status bar entry showing the current number of selected lines.
4 |
5 | 
6 |
7 |
8 | ## VS Code API
9 |
10 | ### `vscode` module
11 |
12 | - [`window.createStatusBarItem`](https://code.visualstudio.com/api/references/vscode-api#window.createStatusBarItem)
13 |
--------------------------------------------------------------------------------
/statusbar-sample/preview.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/statusbar-sample/preview.gif
--------------------------------------------------------------------------------
/statusbar-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": [
12 | "node_modules",
13 | ".vscode-test"
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/tabs-api-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/tabs-api-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/tabs-api-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/task-provider-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/task-provider-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/task-provider-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that compiles the extension and then opens it inside a new window
2 | {
3 | "version": "0.2.0",
4 | "configurations": [
5 | {
6 | "name": "Launch Extension",
7 | "type": "extensionHost",
8 | "request": "launch",
9 | "runtimeExecutable": "${execPath}",
10 | "args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11 | "stopOnEntry": false,
12 | "sourceMaps": true,
13 | "outFiles": ["${workspaceRoot}/out/src/**/*.js"],
14 | "preLaunchTask": "npm: watch"
15 | }
16 | ]
17 | }
18 |
--------------------------------------------------------------------------------
/task-provider-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false,
3 | "typescript.tsc.autoDetect": "off",
4 | "typescript.preferences.quoteStyle": "single"
5 | }
--------------------------------------------------------------------------------
/task-provider-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/task-provider-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "include": ["src"],
12 | "exclude": ["node_modules", ".vscode-test"]
13 | }
14 |
--------------------------------------------------------------------------------
/task-provider-sample/tsconfig.tsbuildinfo:
--------------------------------------------------------------------------------
1 | {"root":["./src/customtaskprovider.ts","./src/extension.ts","./src/raketaskprovider.ts"],"version":"5.8.2"}
--------------------------------------------------------------------------------
/telemetry-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
--------------------------------------------------------------------------------
/telemetry-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/telemetry-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020", "DOM"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/terminal-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/terminal-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/terminal-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/terminal-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/terminal-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | typings/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/terminal-sample/demo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/terminal-sample/demo.png
--------------------------------------------------------------------------------
/terminal-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/test-provider-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | .vscode-test/
4 | *.vsix
5 |
6 | /vscode.d.ts
7 |
--------------------------------------------------------------------------------
/test-provider-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/test-provider-sample/sample/test.md:
--------------------------------------------------------------------------------
1 | # Easy Math
2 |
3 | 2 + 2 = 4 // this test will pass
4 | 2 + 2 = 5 // this test will fail
5 |
6 | # Harder Math
7 |
8 | 230230 + 5819123 = 6049353
9 |
10 | 3 - 1 = 2
11 |
--------------------------------------------------------------------------------
/test-provider-sample/sample/test2.md:
--------------------------------------------------------------------------------
1 |
2 | # hi
3 |
4 | 2 + 2 = 4 // this test will pass
5 |
--------------------------------------------------------------------------------
/test-provider-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/theme-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/theme-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that compiles the extension and then opens it inside a new window
2 | {
3 | "version": "0.2.0",
4 | "configurations": [
5 | {
6 | "name": "Launch Extension",
7 | "type": "extensionHost",
8 | "request": "launch",
9 | "runtimeExecutable": "${execPath}",
10 | "args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11 | "stopOnEntry": false
12 | }
13 | ]
14 | }
15 |
--------------------------------------------------------------------------------
/theme-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "files.eol": "\n",
7 | "files.trimTrailingWhitespace": true,
8 | "search.exclude": {
9 | "out": true // set this to false to include "out" folder in search results
10 | },
11 | "typescript.tsdk": "./node_modules/typescript/lib" // we want to use the TS server from our node_modules folder to control its version
12 | }
--------------------------------------------------------------------------------
/theme-sample/demo-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/theme-sample/demo-dark.png
--------------------------------------------------------------------------------
/theme-sample/demo-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/theme-sample/demo-light.png
--------------------------------------------------------------------------------
/tree-view-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
3 | yarn.lock
--------------------------------------------------------------------------------
/tree-view-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/tree-view-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | "typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
10 | "typescript.tsc.autoDetect": "off",
11 | "editor.insertSpaces": false,
12 | }
--------------------------------------------------------------------------------
/tree-view-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/tree-view-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | .vscode-test/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/tree-view-sample/media/dep.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/tree-view-sample/media/dep.png
--------------------------------------------------------------------------------
/tree-view-sample/resources/dark/edit.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tree-view-sample/resources/light/document.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tree-view-sample/resources/light/edit.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tree-view-sample/resources/package-explorer.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/tree-view-sample/resources/package-explorer.png
--------------------------------------------------------------------------------
/tree-view-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src",
9 | "strict": true
10 | },
11 | "exclude": [
12 | "node_modules",
13 | ".vscode-test"
14 | ]
15 | }
--------------------------------------------------------------------------------
/uri-handler-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/uri-handler-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/uri-handler-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/vim-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/vim-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that compiles the extension and then opens it inside a new window
2 | {
3 | "version": "0.2.0",
4 | "configurations": [
5 | {
6 | "name": "Run Extension",
7 | "type": "extensionHost",
8 | "request": "launch",
9 | "runtimeExecutable": "${execPath}",
10 | "args": ["--extensionDevelopmentPath=${workspaceRoot}"],
11 | "outFiles": ["${workspaceFolder}/out/**/*.js"],
12 | "preLaunchTask": "npm: watch"
13 | }
14 | ]
15 | }
16 |
--------------------------------------------------------------------------------
/vim-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false,
3 | }
--------------------------------------------------------------------------------
/vim-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/vim-sample/example.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/vim-sample/example.gif
--------------------------------------------------------------------------------
/vim-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "rootDir": "src"
9 | },
10 | "exclude": ["node_modules", ".vscode-test"]
11 | }
--------------------------------------------------------------------------------
/virtual-document-sample/.gitignore:
--------------------------------------------------------------------------------
1 | out
2 | node_modules
--------------------------------------------------------------------------------
/virtual-document-sample/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | // A launch configuration that compiles the extension and then opens it inside a new window
2 | {
3 | "version": "0.2.0",
4 | "configurations": [
5 | {
6 | "name": "Launch Extension",
7 | "type": "extensionHost",
8 | "request": "launch",
9 | "runtimeExecutable": "${execPath}",
10 | "args": [
11 | "--extensionDevelopmentPath=${workspaceRoot}"
12 | ],
13 | "stopOnEntry": false,
14 | "sourceMaps": true,
15 | "outFiles": [
16 | "${workspaceRoot}/out/src/**/*.js"
17 | ],
18 | "preLaunchTask": "npm: watch"
19 | }
20 | ]
21 | }
22 |
--------------------------------------------------------------------------------
/virtual-document-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
--------------------------------------------------------------------------------
/virtual-document-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode/**
2 | typings/**
3 | out/test/**
4 | test/**
5 | src/**
6 | **/*.map
7 | .gitignore
8 | tsconfig.json
9 | vsc-extension-quickstart.md
10 |
--------------------------------------------------------------------------------
/virtual-document-sample/cowsay-bwd.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/virtual-document-sample/cowsay-bwd.png
--------------------------------------------------------------------------------
/virtual-document-sample/cowsay.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/virtual-document-sample/cowsay.gif
--------------------------------------------------------------------------------
/virtual-document-sample/src/cowsay.d.ts:
--------------------------------------------------------------------------------
1 | declare module 'cowsay' {
2 |
3 | export interface CowsayOptions {
4 | text: string;
5 | cow?: string;
6 | eyes?: string;
7 | tongue?: string;
8 | wrap?: boolean;
9 | wrapLength?: number;
10 | mode?: 'b' | 'd' | 'g' | 'p' | 's' | 't' | 'w' | 'y'
11 | }
12 |
13 | export function say(options: CowsayOptions): string;
14 | }
15 |
--------------------------------------------------------------------------------
/virtual-document-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": [
12 | "node_modules",
13 | ".vscode-test"
14 | ]
15 | }
--------------------------------------------------------------------------------
/wasm-component-model-async/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 | dist
--------------------------------------------------------------------------------
/wasm-component-model-async/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "type": "extensionHost",
6 | "request": "launch",
7 | "name": "Run Example",
8 | "runtimeExecutable": "${execPath}",
9 | "args": [
10 | "--extensionDevelopmentPath=${workspaceRoot}",
11 | ],
12 | "outFiles": [
13 | "${workspaceRoot}/out/**/*.js"
14 | ],
15 | "sourceMaps": true,
16 | "preLaunchTask": "npm: build"
17 | }
18 | ]
19 | }
--------------------------------------------------------------------------------
/wasm-component-model-async/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "calculator"
3 | version = "0.1.0"
4 | edition = "2021"
5 |
6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7 |
8 | [lib]
9 | crate-type = ["cdylib"]
10 |
11 | [dependencies]
12 | wit-bindgen = "0.21.0"
--------------------------------------------------------------------------------
/wasm-component-model-async/wit/calculator.wit:
--------------------------------------------------------------------------------
1 | // wit/calculator.wit
2 | package vscode:example;
3 |
4 | interface types {
5 | record operands {
6 | left: u32,
7 | right: u32
8 | }
9 |
10 | variant operation {
11 | add(operands),
12 | sub(operands),
13 | mul(operands),
14 | div(operands)
15 | }
16 | }
17 | world calculator {
18 | use types.{ operation };
19 | import log: func(msg: string);
20 |
21 | export calc: func(o: operation) -> u32;
22 | }
--------------------------------------------------------------------------------
/wasm-component-model-resource/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 | dist
--------------------------------------------------------------------------------
/wasm-component-model-resource/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "type": "extensionHost",
6 | "request": "launch",
7 | "name": "Run Example",
8 | "runtimeExecutable": "${execPath}",
9 | "args": [
10 | "--extensionDevelopmentPath=${workspaceRoot}",
11 | ],
12 | "outFiles": [
13 | "${workspaceRoot}/out/**/*.js"
14 | ],
15 | "sourceMaps": true,
16 | "preLaunchTask": "npm: build"
17 | }
18 | ]
19 | }
--------------------------------------------------------------------------------
/wasm-component-model-resource/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "calculator"
3 | version = "0.1.0"
4 | edition = "2021"
5 |
6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7 |
8 | [lib]
9 | crate-type = ["cdylib"]
10 |
11 | [dependencies]
12 | wit-bindgen = "0.24.0"
--------------------------------------------------------------------------------
/wasm-component-model-resource/wit/calculator.wit:
--------------------------------------------------------------------------------
1 | // wit/calculator.wit
2 | package vscode:example;
3 |
4 | interface types {
5 |
6 | enum operation {
7 | add,
8 | sub,
9 | mul,
10 | div
11 | }
12 |
13 | resource engine {
14 | constructor();
15 | push-operand: func(operand: u32);
16 | push-operation: func(operation: operation);
17 | execute: func() -> u32;
18 | }
19 | }
20 | world calculator {
21 | export types;
22 | }
--------------------------------------------------------------------------------
/wasm-component-model/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 | dist
--------------------------------------------------------------------------------
/wasm-component-model/.vscode/launch.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.2.0",
3 | "configurations": [
4 | {
5 | "type": "extensionHost",
6 | "request": "launch",
7 | "name": "Run Example",
8 | "runtimeExecutable": "${execPath}",
9 | "args": [
10 | "--extensionDevelopmentPath=${workspaceRoot}",
11 | ],
12 | "outFiles": [
13 | "${workspaceRoot}/out/**/*.js"
14 | ],
15 | "sourceMaps": true,
16 | "preLaunchTask": "npm: build"
17 | }
18 | ]
19 | }
--------------------------------------------------------------------------------
/wasm-component-model/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "calculator"
3 | version = "0.1.0"
4 | edition = "2021"
5 |
6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7 |
8 | [lib]
9 | crate-type = ["cdylib"]
10 |
11 | [dependencies]
12 | wit-bindgen = "0.21.0"
--------------------------------------------------------------------------------
/wasm-component-model/wit/calculator.wit:
--------------------------------------------------------------------------------
1 | // wit/calculator.wit
2 | package vscode:example;
3 |
4 | interface types {
5 | record operands {
6 | left: u32,
7 | right: u32
8 | }
9 |
10 | variant operation {
11 | add(operands),
12 | sub(operands),
13 | mul(operands),
14 | div(operands)
15 | }
16 |
17 | enum error-code {
18 | none,
19 | overflow,
20 | divide-by-zero
21 | }
22 | }
23 | world calculator {
24 | use types.{ operation, error-code };
25 | import log: func(msg: string);
26 |
27 | export calc: func(o: operation) -> result;
28 | }
--------------------------------------------------------------------------------
/wasm-language-server/.gitignore:
--------------------------------------------------------------------------------
1 | target
2 | client/node_modules
3 | client/dist
4 | client/out
--------------------------------------------------------------------------------
/wasm-language-server/server/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "server"
3 | version = "0.1.0"
4 | edition = "2021"
5 |
6 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7 |
8 | [dependencies]
9 | lsp-server = "0.7.6"
10 | lsp-types = "0.95.1"
11 | walkdir = "2"
12 | serde = "1.0.189"
13 | serde_json = "1.0.107"
--------------------------------------------------------------------------------
/wasm-language-server/server/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "private": true,
3 | "name": "server",
4 | "displayName": "WASM Language Server",
5 | "version": "0.1.0",
6 | "author": "Microsoft Corporation",
7 | "license": "MIT",
8 | "scripts": {
9 | "build": "cargo rustc --release --target wasm32-wasip1-threads -- -Clink-arg=--initial-memory=10485760 -Clink-arg=--max-memory=10485760",
10 | "test:wasm": "node ./bin/send.js | wasmtime --wasm-features=threads --wasi-modules=experimental-wasi-threads target/wasm32-wasi-preview1-threads/release/server.wasm"
11 | }
12 | }
--------------------------------------------------------------------------------
/wasm-language-server/testbed/workspace/lorem.txt:
--------------------------------------------------------------------------------
1 | Lorem ipsum dolor sit amet, consectetur adipiscing elit,
2 | sed do eiusmod tempor incididunt ut labore et dolore
3 | magna aliqua. Ut enim ad minim veniam, quis nostrud
4 | exercitation ullamco laboris nisi ut aliquip ex ea commodo
5 | consequat. Duis aute irure dolor in reprehenderit in
6 | voluptate velit esse cillum dolore eu fugiat nulla pariatur.
7 | Excepteur sint occaecat cupidatat non proident, sunt in culpa
8 | qui officia deserunt mollit anim id est laborum.
--------------------------------------------------------------------------------
/webpack-sample/.gitignore:
--------------------------------------------------------------------------------
1 | dist
2 | node_modules
3 | *.vsix
4 |
--------------------------------------------------------------------------------
/webpack-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/webpack-sample/.vscodeignore:
--------------------------------------------------------------------------------
1 | .vscode
2 | node_modules
3 | src/**
4 | package-lock.json
5 | tsconfig.json
6 | webpack.config.js
7 |
--------------------------------------------------------------------------------
/webpack-sample/src/math.ts:
--------------------------------------------------------------------------------
1 | /*---------------------------------------------------------
2 | * Copyright (C) Microsoft Corporation. All rights reserved.
3 | *--------------------------------------------------------*/
4 |
5 |
6 | export function add(a: number, b: number): number {
7 | return a + b;
8 | }
9 |
10 | export function sub(a: number, b: number): number {
11 | return a - b;
12 | }
13 |
--------------------------------------------------------------------------------
/webpack-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "include": [
12 | "src/**/*.ts",
13 | "./node_modules/vscode/vscode.d.ts",
14 | "./node_modules/vscode/lib/*",
15 | ]
16 | }
17 |
--------------------------------------------------------------------------------
/webview-codicons-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/webview-codicons-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/webview-codicons-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/webview-codicons-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/webview-codicons-sample/demo.gif
--------------------------------------------------------------------------------
/webview-codicons-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/webview-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/webview-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/webview-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/webview-sample/demo.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/webview-sample/demo.gif
--------------------------------------------------------------------------------
/webview-sample/media/cat.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/microsoft/vscode-extension-samples/cf30922221d1c2dcb819da857b7f64583991fed0/webview-sample/media/cat.gif
--------------------------------------------------------------------------------
/webview-sample/media/jsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "jsx": "preserve",
6 | "checkJs": true,
7 | "strict": true,
8 | "strictFunctionTypes": true,
9 | "lib": [
10 | "dom"
11 | ]
12 | },
13 | "exclude": [
14 | "node_modules",
15 | "**/node_modules/*"
16 | ],
17 | "typeAcquisition": {
18 | "include": [
19 | "@types/vscode-webview"
20 | ]
21 | }
22 | }
--------------------------------------------------------------------------------
/webview-sample/media/reset.css:
--------------------------------------------------------------------------------
1 | html {
2 | box-sizing: border-box;
3 | font-size: 13px;
4 | }
5 |
6 | *,
7 | *:before,
8 | *:after {
9 | box-sizing: inherit;
10 | }
11 |
12 | body,
13 | h1,
14 | h2,
15 | h3,
16 | h4,
17 | h5,
18 | h6,
19 | p,
20 | ol,
21 | ul {
22 | margin: 0;
23 | padding: 0;
24 | font-weight: normal;
25 | }
26 |
27 | img {
28 | max-width: 100%;
29 | height: auto;
30 | }
31 |
--------------------------------------------------------------------------------
/webview-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/webview-view-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3 | // Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4 |
5 | // List of extensions which should be recommended for users of this workspace.
6 | "recommendations": [
7 | "dbaeumer.vscode-eslint"
8 | ]
9 | }
--------------------------------------------------------------------------------
/webview-view-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "editor.insertSpaces": false
3 | }
--------------------------------------------------------------------------------
/webview-view-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/webview-view-sample/media/reset.css:
--------------------------------------------------------------------------------
1 | html {
2 | box-sizing: border-box;
3 | font-size: 13px;
4 | }
5 |
6 | *,
7 | *:before,
8 | *:after {
9 | box-sizing: inherit;
10 | }
11 |
12 | body,
13 | h1,
14 | h2,
15 | h3,
16 | h4,
17 | h5,
18 | h6,
19 | p,
20 | ol,
21 | ul {
22 | margin: 0;
23 | padding: 0;
24 | font-weight: normal;
25 | }
26 |
27 | img {
28 | max-width: 100%;
29 | height: auto;
30 | }
31 |
--------------------------------------------------------------------------------
/webview-view-sample/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "module": "commonjs",
4 | "target": "es2020",
5 | "lib": ["es2020"],
6 | "outDir": "out",
7 | "sourceMap": true,
8 | "strict": true,
9 | "rootDir": "src"
10 | },
11 | "exclude": ["node_modules", ".vscode-test"]
12 | }
13 |
--------------------------------------------------------------------------------
/welcome-view-content-sample/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | // See http://go.microsoft.com/fwlink/?LinkId=827846
3 | // for the documentation about the extensions.json format
4 | "recommendations": [
5 | "dbaeumer.vscode-eslint"
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/welcome-view-content-sample/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | // Place your settings in this file to overwrite default and user settings.
2 | {
3 | "files.exclude": {
4 | "out": false // set this to true to hide the "out" folder with the compiled JS files
5 | },
6 | "search.exclude": {
7 | "out": true // set this to false to include "out" folder in search results
8 | },
9 | // Turn off tsc task auto detection since we have the necessary tasks as npm scripts
10 | "typescript.tsc.autoDetect": "off"
11 | }
--------------------------------------------------------------------------------
/welcome-view-content-sample/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | // See https://go.microsoft.com/fwlink/?LinkId=733558
2 | // for the documentation about the tasks.json format
3 | {
4 | "version": "2.0.0",
5 | "tasks": [
6 | {
7 | "type": "npm",
8 | "script": "watch",
9 | "problemMatcher": "$tsc-watch",
10 | "isBackground": true,
11 | "presentation": {
12 | "reveal": "never"
13 | },
14 | "group": {
15 | "kind": "build",
16 | "isDefault": true
17 | }
18 | }
19 | ]
20 | }
21 |
--------------------------------------------------------------------------------
/welcome-view-content-sample/README.md:
--------------------------------------------------------------------------------
1 | # Welcome view content
2 |
3 | This sample demonstrates how to implement welcome view content, which gets displayed in certain views whenever they are empty.
4 |
5 | Run the sample and run `Close Workspace`. In the _no workspace_ window, go to the Explorer. You'll see the content contributed via the `package.json` declaration.
6 |
7 | ## Running the Sample
8 |
9 | - Open this example in VS Code Insiders
10 | - `npm install`
11 | - `npm run watch`
12 | - `F5` to start debugging
13 | - Run the `Workspaces: Close Workspace` command
14 | - Open the Explorer view
15 |
--------------------------------------------------------------------------------
/welcome-view-content-sample/src/extension.ts:
--------------------------------------------------------------------------------
1 | import * as vscode from 'vscode';
2 |
3 | export function activate(context: vscode.ExtensionContext) {
4 | const disposable = vscode.commands.registerCommand(
5 | 'welcome-view-content-sample.hello',
6 | async () => {
7 | vscode.window.showInformationMessage('Hello world!');
8 | }
9 | );
10 |
11 | context.subscriptions.push(disposable);
12 | }
13 |
--------------------------------------------------------------------------------