Commit Graph

112 Commits

Author SHA1 Message Date
Matt Bierner
52d3961c2b Update more extensions to use shared config 2018-10-02 10:24:19 -07:00
Alex Dima
34e7a220c8 Avoid shipping unnecessary files 2018-09-19 19:53:46 +02:00
Martin Aeschlimann
72509c5625 VSCode hangs when opening python file. Fixes #56377 2018-08-15 18:43:17 +02:00
Martin Aeschlimann
c640a0ed5c adopt color changes in colorizer tests 2018-07-27 11:02:03 +02:00
Martin Aeschlimann
74c270e887 update grammars 2018-07-23 20:34:08 +02:00
Martin Aeschlimann
d34d9735cc [python] non-file extension filetype detection. Fixes #52519 2018-06-21 10:24:50 +02:00
Martin Aeschlimann
3cf704d2b8 Add syntax support to Snakemake. Fixes #50978 2018-06-06 17:11:00 +02:00
Brett Cannon
2f581e8986
Allow a space between # and region for folding in Python
Automatic formatting inserts a space between the comment marker `#` and text in the Python extension, so without the allowance for whitespace then `"editor.formatOnType": true` breaks all region markers.

Closes Microsoft/vscode-python#1073 and Microsoft/vscode-python#33
2018-03-28 15:34:56 -07:00
Martin Aeschlimann
9ee425cebd Auto-closing backticks in Python. Fixes #41615 2018-03-02 09:45:46 +01:00
Greg Van Liew
b3a1b98d54 Edit pass on built-in extension descriptions (#44875) 2018-03-01 16:43:06 -08:00
Ramya Achutha Rao
15d0e9b30b Remove and other language features from description of basic builtin extensions #44626 2018-02-27 18:15:50 -08:00
Martin Aeschlimann
8bd41ceeca built-in extensions: version to 1.0.0 (for #43978) 2018-02-27 15:16:07 +01:00
Martin Aeschlimann
292a290e3f Rename built-in syntax and snippet extensions to "Language Basics". Fixes #44241 2018-02-26 21:27:22 +01:00
Martin Aeschlimann
033d21d196 Change python block comment to """. Fixes #42767 2018-02-26 21:23:19 +01:00
Martin Aeschlimann
e45d279b36 description & name for built-in languages (#43978) 2018-02-20 10:09:22 +01:00
Martin Aeschlimann
8fdf170a08 update grammar script: remove unused properties 2018-02-12 16:54:46 +01:00
Martin Aeschlimann
d4d3d407ea
Merge pull request #35636 from Syeberman/python_auto_closing_string_prefix
Support auto-closing quotes in Python raw string literals, etc
2017-11-30 12:25:16 +01:00
Matt Bierner
7cba0cd7ee Move python extension to strict 2017-11-06 14:26:08 -08:00
Matt Bierner
813235c7f7 Move python extension to strict 2017-11-06 14:24:20 -08:00
Martin Aeschlimann
cf70385df5 Folding regions broken 2017-10-12 16:55:15 +02:00
Martin Aeschlimann
1fb361861f [folding] add work boundries to folding markers 2017-10-11 17:28:10 +02:00
lizz
335bce9302 fix indentation 2017-10-08 22:00:44 +08:00
lizz
f5c051e611 Region fold in python
using `#region` and `#endregion`
2017-10-08 21:08:48 +08:00
Sye van der Veen
f5143a99e0 Support auto-closing quotes in Python raw string literals, etc
Python uses a ["string prefix"](https://docs.python.org/3/reference/lexical_analysis.html#string-and-bytes-literals) to denote bytes literals (`b''`), raw strings (`r''`), and formatted string literals (`f''`).  This change makes it so that when one types `r'` in VS Code, the string will be auto-closed as `r''` (as an example).

Python also supports multiple string prefixes for a single literal.  I've tested that typing `fr'` will auto-close to `fr''`, and so forth.
2017-10-05 14:43:46 -04:00
Martin Aeschlimann
a678f60100 FoldingRules language configuration simplification 2017-09-22 13:50:03 +02:00
Martin Aeschlimann
de68414a9a [folding] should not fold whitespace after function. Fixes #3353 2017-09-20 11:09:42 +02:00
isidor
efdc328058 ${workspaceRoot} -> ${workspaceFolder} 2017-09-19 11:21:49 +02:00
Matt Bierner
845fa13b41 Tweak colorization of regexp for light+ and dark+ 2017-09-14 14:45:35 -07:00
Matt Bierner
43cb3b41ac Continue tweaking default dark and light colorization for escape characters and regular expressions 2017-09-13 10:40:07 -07:00
Matt Bierner
3864be5b8e Add rules for regex groups to vs dark+ and light+ themes 2017-09-12 11:52:25 -07:00
Martin Aeschlimann
64fd8f8720 [python] update grammar 2017-08-17 16:22:35 +02:00
Martin Aeschlimann
7790c4a753 update grammars 2017-07-18 10:09:48 +08:00
Joao Moreno
5667cc0e69 use vsce to determine what to package when bundling extensions
fixes #29054
2017-06-21 16:17:21 +02:00
Martin Aeschlimann
f9084bb244 Add information_for_contributors to grammars 2017-05-26 09:27:51 +02:00
Martin Aeschlimann
ae333a8b41 test fixes for #17178 2017-05-18 10:50:30 +02:00
Matt Bierner
7d2dea4e45 Add "Include" to extension TSConfig Files (#25860)
**Bug**
Most VSCode extensions currently specify `"exclude"` in their `tsconfig.json` but not `"include"`. This may result in extra files being included in each project

**Fix**
Add  `"include": ["src/**/*"]` to all extension tsconfig files
2017-05-05 11:37:59 -07:00
Martin Aeschlimann
df3c4151a8 Python file key words highlight. Fixes #24664 2017-04-19 19:38:44 +02:00
Martin Aeschlimann
07d57c55e8 [python] update grammar 2017-04-19 19:38:43 +02: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
Alex Dima
90d74c59aa Use hex colors in themes integration tests 2017-01-05 09:47:08 +01:00
Alex Dima
10f68352a0 Themes integration tests 2017-01-04 22:44:08 +01:00
Matt Bierner
59e53d6070 Remove mocha.d.ts from extension projects that don't need it 2016-12-07 17:06:27 -08:00
Matt Bierner
4add169505 Disable (#16350)
**Bug**
In python file, typing `'` in a string or comment results in `''` due to auto closing pairs.

**fix**
Apply same fix that we use for Typescript to disable this behavior in strings and comments https://github.com/Microsoft/vscode/blob/master/extensions/typescript/language-configuration.json

Fixes #8539
2016-12-02 11:22:34 -08:00
Martin Aeschlimann
bf82981686 [themes] add variable.language for this, super, self... 2016-10-14 18:33:16 +02:00
Martin Aeschlimann
073c6d04e9 [themes] add support.function 2016-10-14 18:02:14 +02:00
Martin Aeschlimann
8751b28026 [themes] remove entity.name.function scope from dark vs-default 2016-10-14 16:06:39 +02:00
Martin Aeschlimann
52f9c67a5a [themes] avoid entity.name.class scope 2016-10-14 16:05:33 +02:00
Don Jayamanne
f4967722fa fixes #7688, fixes #2936, fixes #2867, fixes #2208 2016-08-22 08:51:53 +10:00
Martin Aeschlimann
01ea47c31e Merge pull request #9310 from DonJayamanne/pythonIndent
Auto indenting python code
2016-07-25 18:26:07 +02:00
Martin Aeschlimann
4a13944af6 Migrate all other languages to language-configuration.json 2016-07-21 20:30:37 +02:00
Don Jayamanne
57fa648285 support auto indentation in python #3754 2016-07-15 12:24:31 +10:00
Martin Aeschlimann
d043747187 fixes #4510: [python] Add quote surround/auto-completion for Python 2016-04-21 22:14:33 +02:00
Martin Aeschlimann
de4c7a2e84 Update pyhon grammar, fixes #1467 2016-04-21 11:42:21 +02:00
Martin Aeschlimann
f033f51134 Remove keyword.control.import override from plus themes 2016-04-12 11:56:49 +02:00
Martin Aeschlimann
2cf239dc51 fixes #4881: [cpp] Switching to Atom's language-c for C/C++ syntax highlighting 2016-04-12 11:32:01 +02:00
Martin Aeschlimann
37f5e2b355 [colorize tests] update test result data 2016-04-11 21:28:19 +02:00
Martin Aeschlimann
8509d4e47a even more colorizer tests 2016-04-11 16:03:40 +02:00
Daniel Imms
5ab69e54c8 Disassociate .gn with python language
While Python worked well with GN in v0.10.3, since then the progress made with
the Python language syntax highlighting doesn't play well with the extra quirks
on top of Python that GN introduces (braces, no colons to indicate blocks).
Making it less usable than no language mode.
2015-12-22 09:47:58 -08:00
Daniel Imms
a275306a4b Add .gn as a python file extension
GN is a meta-build system that generates NinjaBuild files. GN syntax is a stripped down version of python.
2015-12-03 08:39:41 -08:00
Martin Aeschlimann
889aba99dc Python: Block comment is three single quotes and not two #18 2015-11-16 10:49:28 +01:00
Martin Aeschlimann
ef99de7936 Add source.regexp.python rules 2015-11-13 18:25:18 +01:00
Erich Gamma
8f35cc4768 Hello Code 2015-11-13 14:39:38 +01:00