Giter Site home page Giter Site logo

microsoft / vscode-docs Goto Github PK

View Code? Open in Web Editor NEW
5.5K 254.0 4.4K 124.22 MB

Public documentation for Visual Studio Code

Home Page: http://code.visualstudio.com/docs

License: Other

CSS 0.04% JavaScript 0.02% Dockerfile 0.01% Shell 0.01% Markdown 99.93%
vscode

vscode-docs's People

Contributors

aeschli avatar alexr00 avatar bamurtaugh avatar bpasero avatar chrmarti avatar chuxel avatar connor4312 avatar daviddossett avatar dbaeumer avatar egamma avatar ghogen avatar hediet avatar isidorn avatar joaomoreno avatar joyceerhl avatar jrieken avatar kraigb avatar luabud avatar meganrogge avatar mjbvz avatar ntrogh avatar octref avatar ornelladotcom avatar rjmolyneaux avatar roblourens avatar rzhao271 avatar sandy081 avatar sbatten avatar tyriar avatar weinand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-docs's Issues

Unknown option listed in ES6 Support docs

In the "ES6 Support" section of the Languages --> JavaScript docs, there's mention of a javescript.validate._surpressSuperWithoutSuperTypeError option. This doesn't seem to exist.

Windows setup tip for running from console on git bash incorrect

Hi,

I believe this used to just work - but with 10.6:

In a git bash terminal for instance, running "code ." does not work - you need to run "code.cmd ." This is not an issue in a windows command prompt.

The docs should indicate this, since I'd guess a lot of will be in alternative terminals.

Documentation issue for Extensions, LanguageServer

Moving issue microsoft/vscode#93 from @cfjedimaster to vscode-docs:

On this page, https://code.visualstudio.com/docs/extensions/example-language-server, debugging the server is described like so:

"Since the server is started by the LanguageClient running the extension we need to attach a debugger to the running server. To do so switch to the VS Code instance containing the server code and press F5. This will attach the debugger to the server. Use the normal Debug View to interact with the running server."

I've tried this multiple times now and every time I do, the server fails to debug. I get this error:

cannot connect to runtime process (timeout after 5000ms)

Command Palette instructions missing for dnu restore

In the RUNTIMES --> ASP.NET 5 doc, the "Scaffolding your first Application" section mentions executing the dnu restore command from the terminal. Is it worth mentioning that an alternative to this approach is to execute the command from Command Palette using the dnx: Restore Packages option?

Add API commands to doc

Since lately we have a way to annotate commands and to collect and bump that information. The next step is to add this info to the doc on code.visualstudio.com. I would propose the 'Extensibility reference' sections.

Since, the command doc is dynamic the product needs to be started and a generator command must be fun. I have added this to my keybindings.json file

    {
        "key": "cmd+j cmd+j",
        "command": "_generateCommandsDocumentation"
    }

When invoked, it will print this to the console:

`vscode.executeWorkspaceSymbolProvider` - Execute all workspace symbol provider.

* _query_ 
* _(returns)_ A promise that resolves to an array of SymbolInformation-instances.


`vscode.executeDefinitionProvider` - Execute all definition provider.

* _uri_ Uri of a text document
* _position_ Position of a symbol
* _(returns)_ A promise that resolves to an array of Location-instances.


`vscode.executeHoverProvider` - Execute all definition provider.

* _uri_ Uri of a text document
* _position_ Position of a symbol
* _(returns)_ A promise that resolves to an array of Hover-instances.


`vscode.executeDocumentHighlights` - Execute document highlight provider.

* _uri_ Uri of a text document
* _position_ Position in a text document
* _(returns)_ A promise that resolves to an array of DocumentHighlight-instances.


`vscode.executeReferenceProvider` - Execute reference provider.

* _uri_ Uri of a text document
* _position_ Position in a text document
* _(returns)_ A promise that resolves to an array of Location-instances.


`vscode.executeDocumentRenameProvider` - Execute rename provider.

* _uri_ Uri of a text document
* _position_ Position in a text document
* _newName_ The new symbol name
* _(returns)_ A promise that resolves to a WorkspaceEdit.


`vscode.executeSignatureHelpProvider` - Execute signature help provider.

* _uri_ Uri of a text document
* _position_ Position in a text document
* _(returns)_ A promise that resolves to SignatureHelp.


`vscode.executeDocumentSymbolProvider` - Execute document symbol provider.

* _uri_ Uri of a text document
* _(returns)_ A promise that resolves to an array of SymbolInformation-instances.


`vscode.executeCompletionItemProvider` - Execute completion item provider.

* _uri_ Uri of a text document
* _position_ Position in a text document
* _(returns)_ A promise that resolves to an array of CompletionItem-instances.


`vscode.executeCodeActionProvider` - Execute code action provider.

* _uri_ Uri of a text document
* _range_ Range in a text document
* _(returns)_ A promise that resolves to an array of CompletionItem-instances.


`vscode.executeCodeLensProvider` - Execute completion item provider.

* _uri_ Uri of a text document
* _(returns)_ A promise that resolves to an array of Commands.


`vscode.executeFormatDocumentProvider` - Execute document format provider.

* _uri_ Uri of a text document
* _options_ Formatting options
* _(returns)_ A promise that resolves to an array of TextEdits.


`vscode.executeFormatRangeProvider` - Execute range format provider.

* _uri_ Uri of a text document
* _range_ Range in a text document
* _options_ Formatting options
* _(returns)_ A promise that resolves to an array of TextEdits.


`vscode.executeFormatOnTypeProvider` - Execute document format provider.

* _uri_ Uri of a text document
* _position_ Position in a text document
* _ch_ Character that got typed
* _options_ Formatting options
* _(returns)_ A promise that resolves to an array of TextEdits.


`editor.action.showReferences` - Show references at a position in a file

* _uri_ The text document in which to show references
* _position_ The position at which to show
* _locations_ An array of locations.

Unauthorized 401

Im getting this error when trying to create a new publisher:

vsce create-publisher bialikover
Publisher human-friendly name: (bialikover) Adan G Galvan Gonzalez
Personal Access Token: ****************************************************

Error: Failed Request: Unauthorized(401) - https://marketplace.visualstudio.com/_apis/gallery

Tried creating a new token and also with quotes (") in publisher name : "bialikover" and friendly name: "Adan G Galvan Gonzalez"

Markdown to HTML conversion issue on the docs/tools/vscecli.md page of the official website

Hi,

The docs/tools/vscecli.md file does not seems to be rendered correctly on the official website: https://code.visualstudio.com/docs/tools/vscecli

The <publisher> parts of the vsce create-publisher <publisher> and vsce login <publisher> commands are missing.

From what I've understood, <publisher> seems to be interpreted as an HTML tag during the conversion from Markdown.

Here is the HTML output I have with Chrome:

<code>vsce create-publisher <publisher>
</publisher></code>

Add a PHP section under Languages

Add the information from the release notes for how to setup PHP validation in there:

Language - PHP
VS Code is now using the official PHP linter (php -l) for PHP language diagnostics. VS Code will now stay current with PHP linter improvements.

There are two new settings to control the PHP linter:

php.validate.executablePath: points to the PHP executable on disk. Set this if the PHP executable is not on the system path.
php.validate.run: controls whether the validation is triggered on save (value: "onSave") or on type (value: "onType"). Default is on save.

Error in the SASS/LESS -> CSS guide

From @malisbad on December 17, 2015 4:53

There is an error in your SCSS/LESS - > CSS guide. The task shouldn't have the ">" in the task runner (anymore?). If you follow the guide, it writes the compiled .css to the ">". If you remove it, it writes to "styles.css" correctly.

Copied from original issue: microsoft/vscode#1401

Getting more done in GitHub with ZenHub

Hola! @BinaryCodeTerrorr has created a ZenHub account for the Microsoft organization. ZenHub is the leading team collaboration and project management solution built for GitHub.


How do I use ZenHub?

To get set up with ZenHub, all you have to do is download the browser extension and log in with your GitHub account. Once you do, you’ll get access to ZenHub’s complete feature-set immediately.

What can ZenHub do?

ZenHub adds a series of enhancements directly inside the GitHub UI:

  • Real-time, customizable task boards for GitHub issues;
  • Burndown charts, estimates, and velocity tracking based on GitHub Milestones;
  • Personal to-do lists and task prioritization;
  • “+1” button for GitHub issues and comments;
  • Drag-and-drop file sharing;
  • Time-saving shortcuts like a quick repo switcher.

Add ZenHub to GitHub

Still curious? See more ZenHub features or read user reviews. This issue was written by your friendly ZenHub bot, posted by request from @BinaryCodeTerrorr.

ZenHub Board

Document the different options for integrating languages

In the documentation we currently only describe the language service server using a common language protocol integration approach. We should describe the different options and their tradeoffs:

  • stateful language service server common protocol, examples: PowerShell, eslint, jshint, tsliint
  • stateful language service server custom protocol with a client adapter, examples: TypeScript, OmniSharp
  • stateless language service, spawn a CLI language tool per request, exampes: PHP, Go_, flow_

Behind the CLI interface Go and Flow use stateful 'demon' process.

"code" function for OSX Yosemite fails with syntax errors, max number of files for opening

On Yosemite 10.10.5, I followed instructions for setting up code in the Mac OS shell here, but get syntax errors.

ts (master?!) $ more ~/.bash_profile
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH

code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}
ts (master?!) $ source ~/.bash_profile
-bash: /Users/valvarez/.bash_profile: line 10: syntax error near unexpected token `('
-bash: /Users/valvarez/.bash_profile: line 10: `code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $* ;}'

Prefixing the definition with function makes it work:

~ $ more ~/.bash_profile
if [ -f ~/.bashrc ]; then
   source ~/.bashrc
fi

# Setting PATH for Python 3.5
# The orginal version is saved in .bash_profile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
export PATH

function code () { VSCODE_CWD="$PWD" open -n -b "com.microsoft.VSCode" --args $*
 ;}
~ $ source ~/.bash_profile
~ $

code now opens new files as well as creates new ones if they don't exist, however, it only opens up a maximum of three files plus an optional directory.

ts (master?!) $ ls -l
total 40
-rw-r--r--  1 valvarez  TSI\Domain Users   91 Dec 14 22:03 app.js
-rw-r--r--  1 valvarez  TSI\Domain Users   92 Dec 14 19:50 app.ts
-rw-r--r--  1 valvarez  TSI\Domain Users    0 Dec 15 09:41 bar
-rw-r--r--  1 valvarez  TSI\Domain Users    0 Dec 15 09:41 baz
-rw-r--r--  1 valvarez  TSI\Domain Users   64 Dec 14 22:03 foo.js
-rw-r--r--  1 valvarez  TSI\Domain Users   54 Dec 14 19:42 foo.ts
-rw-r--r--  1 valvarez  TSI\Domain Users  104 Dec 14 22:03 jsconfig.json
ts (master?!) $ code bar baz app.ts
ts (master?!) $
ts (master?!) $ code ../vs-code foo bar ../vs-code/LICENSE.md

You'll have to trust me that these last step opens up a new editor with with the right files :).

That maximum limit is not in accordance with this documentation:

Sometimes you will want to open or create a file. If a file does not exist, we will create it for you:

code index.html style.css readme.md
Tip: You can have as many file names as you want separated by spaces.

I can submit a pull request with the fixed function definition, but should we denote the limit for the number of files code can open at once here?

Right margin line

I don't see editor setting like "right margin". I suppose, it is usual feature for any IDE. Am I missing something or it is really absent?

Bug in extensions documentation

There is a bug when viewing extensions api documentation. See here.

I tried to make a change in the code, but I can't figure out where the API content gets loaded (I am looking in vscode-api.template). An explanation of how that works would be great.

I am on a Macbook running Chrome 47.0.2526.106 (64-bit).

image

ESLint doc needs update for plugin story

The current docs say that you just have to add "eslint.enable": "true" to the settings file, but in the last release the built-in ESLint support was moved into a plugin that has to be installed.

Invalid sentence in ASP.NET 5 Runtime docs

In the "Projects and Project Selection" section of Runtimes --> ASP.NET 5, the following sentence needs to be rewritten:

"If you have multiple project.json files you can pick which one you want to use, looks down in the status bar."

What was it intended to say? In its current state, it makes no sense.

[0.9.0] mention new options to control window open and restore behavior

There are two new options window.reopenFolders and window.openInNewWindow to control startup behavior of vs code that should probably be mentioned in the docs on the https://code.visualstudio.com/Docs/editor/codebasics page.

The files.openInNewWindow setting controls if files should open in a new window instead of reusing an existing VS Code instance. By default, VS Code will
open a new window, e.g. when you double click on a file outside VS Code or open a file from the command line. Set this to false to reuse the last
active instance of VS Code and open files in there.

The files.reopenFolders setting tells VS Code how to restore the opened windows of your previous session. By default, VS Code will
reopen the last opened folder you worked on (setting: one). Change this setting to none to never reopen any folders and always start with an
empty VS Code instance. Change it to all to restore all folders you worked on. This will reopen all the windows with folders of your previous session.

Processing code open source?

Is the code that processes the docs open source? Is there a way to run a local instance of the docs to see how they'll look?

how to create binaries for node js modules

The only way to make this work for now is to include binaries for all four platforms of VS Code (Windows x86 and x64, Linux, OS X) in your extension and have code that dynamically loads the right one.

you said to include binaries. please tell how to create binaries for all the modules i have added.
I have created 2 extensions and now when i try to publish it doesnt work due to this thing. no module is published.
how to create binary ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.