Commit graph

2009 commits

Author SHA1 Message Date
Joao Moreno 9703537e62 Merge branch 'diff' 2017-02-17 17:21:40 +01:00
Joao Moreno 88d72dbe54 git: fix range staging timing issues 2017-02-17 16:51:56 +01:00
Joao Moreno 8423993f5c Merge branch 'master' into diff 2017-02-17 16:36:23 +01:00
Joao Moreno bb6d6000e9 git: unstage ranges 2017-02-17 16:36:17 +01:00
Joao Moreno 963bbca635 git: pick index/HEAD ref later in the game 2017-02-17 16:21:01 +01:00
Joao Moreno 354059915b git: stage ranges 2017-02-17 16:12:13 +01:00
Martin Aeschlimann 6cb8415749 [theme] update seti to 1.6.1 2017-02-17 16:11:38 +01:00
Joao Moreno 50f8848e44 git: do not throttle git show call 2017-02-17 14:38:26 +01:00
Joao Moreno a09c57d62a git: cleanup 2017-02-17 14:38:26 +01:00
Joao Moreno d196389f53 fixes #20794 2017-02-17 12:38:00 +01:00
Matt Bierner de335bfa49 Small references code lens cleanup 2017-02-16 22:13:54 -08:00
Matt Bierner 844cfe1459 Small formatting cleanup 2017-02-16 16:49:39 -08:00
Matt Bierner a5a0249701 Small formatting cleanup 2017-02-16 16:43:17 -08:00
Matt Bierner 511bcb37a3 Fix duplicate command id 2017-02-16 16:05:01 -08:00
Matt Bierner 5638922563 Remove duplicate TS registrations 2017-02-16 15:55:39 -08:00
Matt Bierner dab0a92ca5 Pick up new ts version 2017-02-16 13:45:41 -08:00
Matt Bierner db25b7ec6e Fix jsdoc build error 2017-02-16 12:52:30 -08:00
Martin Aeschlimann 3a311829e4 [json] remove project.json support (for OmniSharp/omnisharp-vscode#1236) 2017-02-16 21:38:55 +01:00
Matt Bierner d287583f21 Fix timeout for jsdoc call 2017-02-16 11:00:04 -08:00
Matt Bierner 7cd1b6cd79 Revert "Add Status Bar Item for JSConfig/TSConfig" (#20759) 2017-02-16 10:51:20 -08:00
Joao Moreno c894486977 git: better scoped git behaviour 2017-02-16 16:28:05 +01:00
Joao Moreno 6d69f69c71 git: scoped git repositories
fixes #20227
2017-02-16 16:28:05 +01:00
Martin Aeschlimann 740799fb53 Opening from command-line in empty folder creates debug.log file. Fixes #20325 2017-02-16 16:15:35 +01:00
Joao Moreno f2c14fcb68 git: remove TODO 2017-02-16 15:26:50 +01:00
Joao Moreno b19f71988d git: init icon 2017-02-16 11:36:44 +01:00
Joao Moreno 163267821c Merge branch 'gitinit' 2017-02-16 10:23:34 +01:00
Joao Moreno ca27a87b05 git: hide/show commands based on state 2017-02-16 10:23:15 +01:00
Joao Moreno 3d6b1b71c5 git: wrap up nogit state 2017-02-16 10:15:38 +01:00
Matt Bierner 7a82ac3ff9 Small markdown code cleanup 2017-02-15 14:49:41 -08:00
Matt Bierner fe742d3800 Autofill for JSDocs (#20625)
* Add autofill for JSDocs

Adds prototype of autofill for jsdoc comments. For code like:

```js
    /**|
    function mul(x, y) {
        return x * y;
    }
```

When you press return, we will complete it to:

```js
    /**
     *
     * @param x
     * @param y
     */
    function mul(x, y) {
        return x * y;
    }
```

In Typescript and to:

```js
    /**
     *
     * @param {any} x
     * @param {any} y
     */
    function mul(x, y) {
        return x + y;
    }
```

In JavaScript

* Handle revert case better

* Disable on enter when suggestion is visible
2017-02-15 14:04:36 -08:00
Matt Bierner e0354d386a Add Status Bar Item for JSConfig/TSConfig (#20571)
Fixes #20356

Adds a status bar item that shows which jsconfig/tsconfig a ts or js file currently belongs to. This triggers the `typescript.goToProjectConfig` command when clicked, which either jumps to the config file or shows an alert about creating a configuration file
2017-02-15 13:26:32 -08:00
Joao Moreno ac703e0d92 wip: git init 2017-02-15 17:46:58 +01:00
Joao Moreno a7f80ccece git: cleanup 2017-02-15 17:20:51 +01:00
Martin Aeschlimann 6f15c468d9 [perl] typo in grammar 2017-02-15 17:07:02 +01:00
Martin Aeschlimann acdb4e941a [perl] update grammar 2017-02-15 17:07:01 +01:00
Martin Aeschlimann 255ecfb084 themes as settings 2017-02-15 17:07:01 +01:00
Matt Bierner 80a864ebc1 Fix markdown editor link possibly breaking 2017-02-14 17:12:37 -08:00
Matt Bierner 4f6efb0ef5 Use same slugify logic for editor links as well 2017-02-14 17:07:38 -08:00
Kazuyuki Sato ac5beb61b2 markdown-it-named-header custom slugify for non-latin characters (#20628)
* markdown-it-named-header custom slugify for non-latin characters

* Delete comment
2017-02-14 16:50:20 -08:00
rebornix a3af133211 correct boundary for embedded languages in HTML 2017-02-14 10:56:30 -08:00
Matt Bierner 480eaa519e Activate ts when workspace contains js or ts config to get intellisense for these config files 2017-02-13 14:39:39 -08:00
Matt Bierner e28dbc6d79 Clarify typings Fixes #20309 2017-02-13 14:34:37 -08:00
Matt Bierner 6b5c143705 Clarify markdown setting string. Fixes #20409 2017-02-13 14:17:27 -08:00
Matt Bierner b9eab3261f Clairfy references codelens string. Fixes #20393 2017-02-13 14:15:17 -08:00
Matt Bierner 5db8fd0f55 Add Command to Go To / Create project configuration for an active js or ts file (#20362)
* Add Command to Go To / Create project configuration for an active js or ts file

Part of #20356

Adds a new command that opens the jsconfig or tsconfig project configuration file for the currently active file. If one does not exist, displays a quick pick that allows users to learn more and create a config file at the root of their project

* Add messages for error cases

* Work around ts error
2017-02-13 12:58:40 -08:00
Joao Moreno 2c69e4e50f git: renames
fixes #18654
2017-02-13 16:43:07 +01:00
Matt Bierner c52f03ccf7 Only check tsc version for ts files. Fixes #17736 2017-02-10 15:46:51 -08:00
Matt Bierner 35a6f985b5 Update html extension to TS 2.1.6 .Fixes #19629 2017-02-10 14:39:43 -08:00
Martin Aeschlimann 0eaf8f4362 [fsharp] update grammar 2017-02-10 10:32:23 +01:00
Matt Bierner 3da42e5659 Debounce markdown selection update events Fixes #19827 2017-02-09 17:55:59 -08:00
Matt Bierner baaf639989 Small code cleanup 2017-02-09 17:45:15 -08:00
Matt Bierner d759bb7046 Properly escape names for ts reference code lens Fixes #20357 2017-02-09 16:32:32 -08:00
Matt Bierner bda6f847b1 Pick up TS 2.2 2/9 insiders build (#20363) 2017-02-09 16:26:45 -08:00
Matt Bierner 789fa53908 Fix markdown links no opening 2017-02-09 13:41:11 -08:00
Matt Bierner 94391ea14d Send script kind based on languageId for js and ts files (#20351) 2017-02-09 13:37:47 -08:00
Joao Moreno f2f937cf54 git: editor actions 2017-02-09 18:24:13 +01:00
Sandeep Somavarapu 15da2f3e83 #19733 Update npm shrink-wrap for exetension-editing extension 2017-02-09 16:56:01 +01:00
Sandeep Somavarapu 5b93f63f4f Correct the pattern while registering package.json 2017-02-09 16:51:34 +01:00
Martin Aeschlimann 2c42d3877e [rust] Update rust grammar (for #19574) 2017-02-09 16:22:35 +01:00
Sandeep Somavarapu 765638410d #19733 Implement intellisense for language specific editor settings in configuration defaults 2017-02-09 15:24:52 +01:00
Joao Moreno f3d8873ba7 git: cleanup command center 2017-02-09 15:08:10 +01:00
Sandeep Somavarapu b68f3b2f38 #19733 Default configurations
- Define a new extension point `configurationDefaults` for contributing default language specific editor settings
2017-02-09 00:23:00 +01:00
Matt Bierner 3ba88b6800 Pick up TS 2.1.6 2017-02-08 15:19:16 -08:00
Matt Bierner 4b007e50d2 Improve markdown preview handling of ill formatted html Fixes #20199 2017-02-08 13:28:48 -08:00
Sandeep Somavarapu 6547ce09e8 #19149 Implement intellisense for language specific editor configurations in settings editor 2017-02-08 20:52:21 +01:00
Martin Aeschlimann 0fa326c6a1 Include C# textmate grammar. Fixes #19469 2017-02-08 13:06:21 +01:00
Joao Moreno 9a3321404e git: undo command 2017-02-08 12:59:19 +01:00
Joao Moreno 7c2ea17421 git: commit commands 2017-02-08 12:59:19 +01:00
Joao Moreno a0b3d09ab4 git: pull, push, sync commands 2017-02-08 12:59:19 +01:00
Benjamin Pasero eff9148502 fix #20049 2017-02-08 07:34:23 +01:00
Matt Bierner 7f8173680f Use @types a few more places (#20159) 2017-02-07 18:16:19 -08:00
Matt Bierner 42335c57f5 Revert "Use types tsconfig option where possible"
This reverts commit 38fbba35ff.
2017-02-07 16:31:50 -08:00
Matt Bierner 38fbba35ff Use types tsconfig option where possible 2017-02-07 15:57:22 -08:00
Matt Bierner 1a024c1b19 Use reference @types/node in extensions 2017-02-07 15:38:04 -08:00
Martin Aeschlimann e3d6c5d682 fix language intellisense for #20049 2017-02-07 23:20:51 +01:00
Matt Bierner 29f8a93109 Disable Paren Commit Item When useCodeSnippetsOnMethodSuggest is Enabled (#20096)
**bug**
`(` was added as a commit character in 1.9. Combined with `useCodeSnippetsOnMethodSuggest`, this is causing some anoying autocomplete behavior.

**Fix**
Disable `(` as a commit character while `useCodeSnippetsOnMethodSuggest` is enabled.
2017-02-07 11:06:45 -08:00
Matt Bierner aa3d327cb7 Stop TS From Spamming Crash Messages (#20081)
* Stop TS From Spamming Crash Messages

**Bug**
When the tsserver crashes repeatedly, it can end up spamming users with constant alerts. This is not too helpful

**Fix**
A number of small fixes:

* Lengthen ts 5 crash timeout to 10 seconds from 2 seconds. 5 crashes in 10 seconds == no attempted restart
* Reset the last started time when we have any number of crashes in the row. This resets the crash windows.
* Fix all crashes after 5 retriggering the same logic. I believe the intent was that we should show these errors every five crashes, not on any crash after the fifth one

* Set last startTime on boot
2017-02-07 11:05:04 -08:00
Benjamin Pasero 4d9ee74935 move more into config-editing extension (for #20049) 2017-02-07 16:52:19 +01:00
Tim Jones 67560d3192 Implement HLSL syntax highlighting
And use HLSL grammar to highlight CG blocks in ShaderLab shaders.
2017-02-07 23:16:41 +08:00
Benjamin Pasero bcff7c60e5 move window.title config helper out to extension (for #20049) 2017-02-07 12:24:03 +01:00
Joao Moreno 7c8d8e822f git: enabled config 2017-02-07 12:03:46 +01:00
Joao Moreno fe518b7ecf git: confirmSync setting 2017-02-07 12:03:46 +01:00
Martin Aeschlimann 8f41b84035 [coffeescript] remove unused grammar 2017-02-07 11:16:07 +01:00
Matt Bierner cc2c7c0a1a Improve Markdown Preview Code Block Coloring
Fixes #7776

**Bug**
Code blocks in the markdown preview are not very good looking

**Fix**
Use default text color for indented code blocks and add a background
2017-02-06 17:18:58 -08:00
Matt Bierner 8ac90919c0 Updated yaml grammar 2017-02-06 12:53:38 -08:00
Matt Bierner 9af9a80aaa Fix error markers and problems links in untitled js and ts files (#20073)
Fixes #19856
2017-02-06 11:29:12 -08:00
Matt Bierner f401c72a55 Enable Markdown Scroll Syncronization for Untitled Files (#20072)
Fixes #20070

**Bug**
Markdown scroll sync and other sync features do not work for untitled files. The root cause seems to be that the `main.js` markdown file is never loaded

**Fix**
Instead of a using a path without a scheme for `main.js`, use a `file://` path
2017-02-06 11:20:36 -08:00
Matt Bierner ebfd13baca Revert 1c75093313 2017-02-06 10:44:01 -08:00
Matt Bierner 4e91a74c6f Fix Markdown Scroll Sync For Windows Path Casing (#20064)
**Bug**
Scroll sync not working for some users on windows

**Fix**
Root cause seems to be that windows drive/path cases can sometimes differ between preview and editor document. Adds a equality check based on `fsPath` as well
2017-02-06 10:19:45 -08:00
Benjamin Pasero 29c4e311cd window title: convert variable format from $() to ${} 2017-02-06 14:31:37 +01:00
Martin Aeschlimann bf3cfd9dd5 Format Document Completely breaks code!!!. Fixes #19813 2017-02-06 12:54:38 +01:00
Joao Moreno 63a69695f7 git: always run in english locale 2017-02-06 12:39:08 +01:00
Joao Moreno cd641b5bf6 fixes #18790 2017-02-06 12:36:29 +01:00
Joao Moreno 34a847891e git: show first non empty message error 2017-02-06 12:18:04 +01:00
Benjamin Pasero 693de57e87 Allow to configure title bar information (fixes #1723) (#19932) 2017-02-06 09:50:27 +01:00
Matt Bierner 4495f714a9 Fix Slow Markdown Front matter stripping regexp (#19894)
**Bug**
For long/not-terminated frontmatter in a markdown file, we can currently hang the process while trying match it using a regular expression

**Fix**
Use a more efficent regexp to do this.
2017-02-03 17:56:52 -08:00
Matt Bierner de28ea63ab Add extra check tsdk path when getting version. Fixes #19600 (#19886) 2017-02-03 15:34:42 -08:00
Joao Moreno 3eddf71678 scm: hide input box model from extension host 2017-02-03 17:20:26 +01:00
Martin Aeschlimann d7382f0d55 html.format.wrapAttributes: value is "force-aligned", not "force-align". Fixes #19849 2017-02-03 16:06:33 +01:00
Matt Bierner 1c75093313 Disable experimental api in ts extension 2017-02-02 16:49:56 -08:00
Matt Bierner 87dc264193 Don't show anon functions/classes in TS document symbol list. Fixes #18698 2017-02-02 16:40:33 -08:00
Matt Bierner d6bfdf609f Split out some functions in ts document symbol provider 2017-02-02 14:17:41 -08:00
Matt Bierner a87586c7c3 Add Type Definition Provider API (#19699)
* Add Type Definition Provider API

Adds a new API to support type definition providers and adds an initial type definition provider for TypeScript

* Fix comment

* Addressing comments

* Fixer menu option ordering

* Added simple test
2017-02-02 14:01:23 -08:00
Matt Bierner edf9fedf5d Small cleanup to ts extension 2017-02-02 11:05:59 -08:00
Sean McCann d553a4add1 #19719 - fixed typos in TypeScript extension settings keyword descriptions (#19720) 2017-02-02 10:59:56 -08:00
Martin Aeschlimann d516c31df0 [themes] colorize scss and less varibales in vs themes 2017-02-02 10:48:46 +01:00
Martin Aeschlimann ffdaa221d9 [scss] update grammar (atom/language-sass@63b3aa0) 2017-02-02 10:48:46 +01:00
Dirk Baeumer f8e09e80ad Another wording change to the PHP executable validation. 2017-02-02 10:13:25 +01:00
Matt Bierner 63929e0d20 Added extra null check in configFileDiagnosticsReceived 2017-02-01 22:38:02 -08:00
Matt Bierner 8dad2594ce Remove a few more extension d.ts files that are not needed 2017-02-01 17:53:47 -08:00
Matt Bierner cda3584a99 Use @types/node in extensions (#19692)
Switches builtin extensions to use @types/node for node definitions. Fixes a few errors that show up as a result of updating to a more modern version of node.d.ts
2017-02-01 15:20:17 -08:00
katainaka 96ba7c27aa Fixed colorization of nested list. (#19596)
Fixed colorization of nested list with unindented line.
2017-02-01 14:18:23 -08:00
Matt Bierner 909d79f36a Add no unused local and no unused parameter checks to ts extension 2017-02-01 13:41:59 -08:00
Matt Bierner 4afd014791 Add no unused paramter option to markdown extension 2017-02-01 13:34:35 -08:00
Matt Bierner ae3f254e35 Flag errors in TSconfig.json (#19656)
Fixes #3783

From https://github.com/Microsoft/TypeScript/issues/10473
2017-02-01 12:37:09 -08:00
Matt Bierner c7c9530cd7 Bump bundled extension ts version to 2.1.5 (#19657) 2017-02-01 12:35:12 -08:00
Matt Bierner 7c633148b3 Remove unneeded d.ts files from extensions (#19653)
* Remove unneeded d.ts files from extensions

Moves most extensions to use the lib files for the standard library that typescript provides.

* Remove a few more node.d.ts references
2017-02-01 12:34:50 -08:00
Martin Aeschlimann 76e7a3c3ee [less] Update less.tmLanguage.json to atom/language-less@9123663 (2017-01-31) 2017-02-01 12:21:13 +01:00
Dirk Baeumer a035361751 Wording change if php.validate.executablePath points to an invalid executable 2017-02-01 10:49:55 +01:00
Matt Bierner 1ee3f9dc6c Added command for selecting ts version (#19641)
* Added command for selecting the ts version

* Update name

* Update name
2017-01-31 14:27:24 -08:00
Martin Aeschlimann d133a5e17c [coffeescript] switch to atom/language-coffee-script. Fixes #14953, #14945, #15008 2017-01-31 22:44:17 +01:00
Martin Aeschlimann d7fb58ecac [less] update grammar 2017-01-31 22:00:15 +01:00
Matt Bierner ab91538237 Small cleanup of markdown extensions.ts 2017-01-31 11:47:40 -08:00
Matt Bierner 4d9dc7479b Fixes #19612 script tag on same line breaks markdown colorization 2017-01-31 11:26:16 -08:00
Dirk Baeumer 4038b7a7d7 Small wording change for PHP linter confirmation. 2017-01-31 20:18:34 +01:00
Matt Bierner 2e0df7fc38 Fixes #19610 2017-01-31 11:09:41 -08:00
Matt Bierner 7c96cd3c4a Support Fragments for intra document markdown editor links (#19639)
Adds support for editor links with fragements for markdown. This jumps to the correct header location if one can be found
2017-01-31 11:05:06 -08:00
Joao Moreno c0c25a3f6c git: checkoutType config 2017-01-31 17:14:03 +01:00
Martin Aeschlimann 60bbe61489 [css] change grammar to atom/language-css 2017-01-31 17:10:28 +01:00
Joao Moreno da1a21d1de git: countBadge config 2017-01-31 17:06:27 +01:00
Joao Moreno adb32aa444 git: enableLongCommitWarning config 2017-01-31 17:06:27 +01:00
Joao Moreno 51f3f40a1a git: path config 2017-01-31 17:06:27 +01:00
Joao Moreno 16694c32b8 git: add commit toolbar menu item 2017-01-31 16:47:09 +01:00
Joao Moreno cc8351eb95 git: autorefresh config 2017-01-31 16:47:09 +01:00
Joao Moreno 2881fe860d git config: autofetch 2017-01-31 16:47:09 +01:00
Joao Moreno 5ab16bc306 fix #19496 2017-01-31 16:01:24 +01:00
Joao Moreno 5f5de2bb1f fix checkout branchs/tags 2017-01-31 16:00:55 +01:00
Dirk Baeumer 54b410174f Fixes #19624: Adopt "php.validate.executablePath" handling to new TS behavior 2017-01-31 11:24:17 +01:00
Joao Moreno cb36e6c217 git: commit 2017-01-31 11:15:52 +01:00
Joao Moreno b276b5e04b Merge branch 'master' into scm-commit-box 2017-01-31 11:09:24 +01:00
Martin Aeschlimann d071e86e9e [java] JavaDoc syntax coloring doesn't work on closing tags. Fixes #16041 2017-01-31 10:38:13 +01:00
Martin Aeschlimann efad63ea43 [pug] update tests for grammar update 2017-01-31 10:03:45 +01:00
Joao Moreno 418744c1d8 git: improve CommitHandler 2017-01-31 09:59:21 +01:00
Matt Bierner 35e2132409 New tsdk flow for 19 (#19602)
* Allow using workspace typescript.tsdk setting

Allows users to opt into using their workspace typescript.tsdk setting to specify the path to their typescript install.

Also, fixes a bug when the global tsdk setting points to the workspace version of typescript, our ts selector interface can get confused on which version is currently active. The fix adds a check using the local storage value to show the correct active version.

* Flip vscode and workspace pick order

* Use shared logic when workspace tsdk setting is not used
2017-01-30 16:33:20 -08:00
Martin Aeschlimann cc8df7305b Replace jade with pug. Fixes #18219 2017-01-30 21:59:59 +01:00
Matt Bierner c01ba26f61 Fix TS Version Selector When Local Version == Global Version (#19593)
**Bug**
When the global tsdk setting points to the workspace version of typescript, our ts selector interface can get confused on which version is currently active

**Fix**
Adds a check using the local storage value to show the correct active version
2017-01-30 12:41:38 -08:00
Matt Bierner 15c2d1f51e Move markdown preview content provider to own file (#19592) 2017-01-30 12:36:43 -08:00
Joao Moreno e43137f514 long commit decoration 2017-01-30 20:17:29 +00:00
Dirk Baeumer 9dc95af517 Fixes #19436: Add support to edit the php executable path as a non sharable workspace setting 2017-01-30 17:13:22 +01:00
Martin Aeschlimann bb18628a66 [json] dynamically enable & disable formatter 2017-01-30 16:32:31 +01:00