Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
124 commits
Select commit Hold shift + click to select a range
3f52d01
add code fixes command
Apr 17, 2018
e38bde8
add syntactic code fixes, move get_errors_at_cursor, other minor code…
Apr 18, 2018
68cd8ef
rename to TypescriptRequestCodeFixesCommand
Apr 18, 2018
ff0bc68
rename to request_code_fixes
Apr 18, 2018
2657ef7
convert CRLF, CR to newline characters before replace
Apr 19, 2018
d2e24f2
handle multiple line code fixes and \n line edge case
Apr 28, 2018
8331a5f
Apply rename edits in reverse.
DanielRosenwasser Jan 30, 2019
5240174
Merge pull request #702 from Microsoft/fixRenameSameLine
DanielRosenwasser Jan 30, 2019
61b6b62
Update to TypeScript 3.3.1.
DanielRosenwasser Jan 30, 2019
fe1e1a3
Create 3.3.1.txt
DanielRosenwasser Jan 31, 2019
5da3306
Check if the entire file matches a selector when deciding whether it'…
DanielRosenwasser Feb 25, 2019
ed08750
Merge pull request #705 from Microsoft/checkTheWholeFileItsNotThatHard
DanielRosenwasser Feb 25, 2019
d68a936
Update to TypeScript 3.3.3333.
DanielRosenwasser Feb 25, 2019
7f372b5
add colors to signature popups
kbjr Mar 3, 2019
1a17409
update signature popup template to take color params
kbjr Mar 3, 2019
598aaef
Merge pull request #1 from kbjr/signature-popup-colors
kbjr Mar 3, 2019
a4bcd01
added missing function call
kbjr Mar 4, 2019
e1e19cb
add support for keyword blocks in signature popup
kbjr Mar 9, 2019
046755f
add styling for keyword blocks in signature popup
kbjr Mar 9, 2019
690ddad
add styling for quickinfo popups
kbjr Mar 14, 2019
0021790
pull in typing data for quick info popups
kbjr Mar 14, 2019
2f18af1
add method for pulling quickinfo-full
kbjr Mar 14, 2019
2f47930
remove some debug code
kbjr Mar 14, 2019
5d359c5
update signature popup styles
kbjr Mar 14, 2019
7ece044
update styling in signature popup to use bold/italic styles
kbjr Mar 14, 2019
649a341
remove debugging changes
kbjr Mar 14, 2019
99cda4f
fix error when opening quickinfo popups that have no documentation key
kbjr Mar 14, 2019
7ffd647
Remove noisy printout in listeners
mykmartin Sep 7, 2018
bebad13
Update syntax grammar files.
DanielRosenwasser Mar 28, 2019
4565f79
Update to TypeScript 3.4.1.
DanielRosenwasser Mar 28, 2019
9e5f22a
add quick_info_full
kbjr Apr 6, 2019
55e60dc
Merge pull request #2 from kbjr/kbjr-patch-1
kbjr Apr 6, 2019
bf48248
pull common get_theme_styles() function into a shared lib
kbjr Apr 11, 2019
e918f6f
fix some formatting
kbjr Apr 11, 2019
bdb5863
Changes max width of HTML popup view from 1500 to 1024
kylebebak Apr 28, 2019
def3c43
Adds overridable settings for error_color, quick_info_popup_max_width
kylebebak Apr 30, 2019
75dc281
Adds info about error_color, quick_info_popup_max_width settings to R…
kylebebak Apr 30, 2019
908d90e
fix typo from copy/paste while refactoring
kbjr May 2, 2019
56d9be0
Add basic syntax highlighting to signature/quickinfo popups (#707)
DanielRosenwasser May 23, 2019
0f0bb0c
Default value for quick_info_popup_max_width taken from self.view.vie…
kylebebak May 23, 2019
515ad5c
Merge remote-tracking branch 'remotes/upstream/master'
kylebebak May 23, 2019
d6f2e35
Update to TypeScript 3.5.1.
DanielRosenwasser May 29, 2019
6a82ed1
Update language grammar files.
DanielRosenwasser May 29, 2019
0b82fc2
Merge pull request #715 from kylebebak/master
DanielRosenwasser Jul 8, 2019
68129f4
Merge pull request #709 from mykmartin/noPrintCommandName
Jul 8, 2019
d0027a3
All type and error info messages can be copied from popup
kylebebak Jul 2, 2019
c68f05d
Removes default snippets
kylebebak Jun 9, 2019
1069900
Merge branch 'master' of github.com:microsoft/TypeScript-Sublime-Plugin
kylebebak Jul 8, 2019
71612a7
Merge pull request #661 from it6/add-code-fixes
Jul 24, 2019
bf8e9ed
Update to TypeScript 3.6.2.
DanielRosenwasser Aug 28, 2019
1f2dbf2
Update grammar files.
DanielRosenwasser Aug 28, 2019
eea3d8a
Implements two new settings to optional enable a gutter icon and turn…
Aug 31, 2019
268ddfe
Update README.md
bertilnilsson Sep 10, 2019
775cbc0
Merge pull request #726 from bertilnilsson/master
Sep 11, 2019
79f2bad
Update to TypeScript 3.7.2.
DanielRosenwasser Nov 5, 2019
8bfce29
Update grammar files.
DanielRosenwasser Nov 5, 2019
7be868e
Add node_args, tsserver_args, tsserver_env options
mattbroussard Nov 6, 2019
498b0a1
undo log config changes made for dev & accidentally committed
mattbroussard Nov 6, 2019
6fafe75
do not inhibit word completions
matthandlersux Nov 10, 2019
f14209a
Use `os.path.relpath` on a normalized Packages base path
Nov 11, 2019
fe6c753
Correctly fall back in the presence of an empty string.
DanielRosenwasser Nov 15, 2019
1d5160e
Correctly use default error color in the presence of an empty st… (#735)
DanielRosenwasser Nov 15, 2019
0c402cc
Merge branch 'master' of github.com:microsoft/TypeScript-Sublime-Plugin
kylebebak Dec 20, 2019
4ddf3da
Revert "Removes default snippets"
kylebebak Dec 20, 2019
ccc4cb9
Reimplements copy content from tooltip function
kylebebak Dec 20, 2019
c79e0c9
Merge pull request #724 from kylebebak/master
Jan 15, 2020
37609cd
Merge pull request #733 from matthandlersux/mh/fix-tab-completion
Jan 15, 2020
913aefc
Merge pull request #730 from mattbroussard/node-args
Jan 15, 2020
ab51614
Merge pull request #734 from adill/fix/signature-popup-path
Jan 15, 2020
d9dfa30
Update grammar files.
DanielRosenwasser Feb 20, 2020
9cd994a
Update to TypeScript 3.8.2.
DanielRosenwasser Feb 20, 2020
7009d12
add setting to configure word completions inhibition
Mar 5, 2020
765c8e1
Revert "add setting to configure word completions inhibition"
Mar 5, 2020
85fcd39
Add a setting key to manage api_completions_only parameter for autoco…
Mar 5, 2020
485dbe8
fix: missing pref_settings variable in node_client.py
aNickPlx Mar 10, 2020
8f42f8d
Replaced start up useless excessive printing by log.debug() calls, issue
evandrocoan Feb 20, 2018
5d77e05
Merge pull request #741 from aNickPlx/master
Apr 3, 2020
fe7d9ac
Merge pull request #742 from evandroforks/replace_print_by_debug_log
Apr 3, 2020
64991b1
Expose stderr of node process
addreas May 6, 2020
8833e5a
Update to TypeScript 3.9.2.
DanielRosenwasser May 12, 2020
f21aba5
Update grammar files.
DanielRosenwasser May 12, 2020
c099e71
Add missing requried arguments in call to show_tooltip_popup()
May 29, 2020
352f992
Improve typescript_tsdk lookup
alecmev May 26, 2020
498d74c
Merge pull request #745 from addreas/patch-1
Jun 8, 2020
5222c26
Merge pull request #750 from robsgreen/master
Jun 8, 2020
a0d393a
Merge pull request #748 from alecmev/patch-1
Jun 8, 2020
3371140
Update Yarn 2 instructions
alecmev Jul 9, 2020
d277b03
Merge pull request #752 from alecmev/patch-1
Jul 14, 2020
256eb0c
Update grammar files.
DanielRosenwasser Aug 20, 2020
603ebb4
Update to TypeScript 4.0.2.
DanielRosenwasser Aug 20, 2020
db74d32
Check for key in style before accessing.
rgant Sep 14, 2020
229f0d6
Merge pull request #757 from rgant/sublime4-style_for_scope_fix
Dec 7, 2020
a3701f5
Update README.md
msieurtoph Dec 7, 2020
28b2a88
Update README.md
msieurtoph Dec 7, 2020
a607ddf
Merge pull request #739 from msieurtoph/fix-pr-733
Dec 7, 2020
85a6565
Bypass the TSServer CRLF bug
borodean Jan 23, 2021
27c0c0c
Merge pull request #767 from borodean/ts-server-cr-lf-fix
Feb 9, 2021
6319cc1
Update grammar files.
DanielRosenwasser Feb 23, 2021
3f8d0e5
Update to TypeScript 4.2.2.
DanielRosenwasser Feb 23, 2021
70f8ede
Merge pull request #769 from microsoft/4.2-update
DanielRosenwasser Feb 23, 2021
b97a02d
Revert a0d393a to avoid potentially loading from C:/
DanielRosenwasser Feb 23, 2021
e45e059
Merge pull request #770 from microsoft/undoUpwardsWalking
DanielRosenwasser Feb 23, 2021
fe400e6
Update grammar files.
DanielRosenwasser May 26, 2021
588c24d
Update to TypeScript 4.3.2.
DanielRosenwasser May 26, 2021
afe607f
Update grammar files.
DanielRosenwasser Aug 26, 2021
ba45efd
Update to TypeScript 4.4.2.
DanielRosenwasser Aug 26, 2021
c525eb0
Update contents for TypeScript 4.6.
DanielRosenwasser Feb 24, 2022
a22f8a3
Update tmLanguage/grammar files.
DanielRosenwasser May 24, 2022
91ce22b
Update TypeScript to 4.7.2.
DanielRosenwasser May 24, 2022
692988e
Update TypeScript to 4.8.2
DanielRosenwasser Aug 25, 2022
a34e0c7
Update tmLanguage/grammar files.
DanielRosenwasser Aug 25, 2022
fb217ab
Microsoft mandatory file
microsoft-github-policy-service[bot] Aug 25, 2022
3ca9e76
Merge pull request #788 from microsoft/users/GitHubPolicyService/c263…
DanielRosenwasser Aug 25, 2022
e724c4a
Add codeql
sandersn Nov 28, 2022
d28843b
try to force python-only
sandersn Nov 29, 2022
6e19564
try putting the strategy into codeql.yml, I dunno
sandersn Nov 29, 2022
b5ff7d8
yaml sucks but mainly codeql documentation sucks
sandersn Nov 29, 2022
3353449
try the following troubleshooting steps: "copy this snippet of code"
sandersn Nov 29, 2022
6ad8e98
switch paths src -> typescript
sandersn Nov 29, 2022
22ed399
remove python-only language config
sandersn Nov 29, 2022
819c48f
re-add python-only in codeql.yml
sandersn Nov 29, 2022
fb61dcd
Merge pull request #790 from microsoft/add-codeql
sandersn Nov 29, 2022
ea7599b
Update TypeScript to 5.0.2.
DanielRosenwasser Mar 13, 2023
9044184
Update tmLanguage grammar and tmTheme files.
DanielRosenwasser Mar 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/codeql/codeql-configuration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name : CodeQL Configuration

paths:
- './typescript'
39 changes: 39 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# copied from microsoft/TypeScript and simplified slightly; see that file for boilerplate commentary
# (which was likely copied from github/codeql-action)
name: "Code scanning - action"

on:
push:
pull_request:
schedule:
- cron: '0 19 * * 0'

jobs:
CodeQL-Build:
strategy:
fail-fast: false
matrix:
language: ['python']


runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
# We must fetch at least the immediate parents so that if this is
# a pull request then we can checkout the head.
fetch-depth: 2

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-configuration.yml

- name: Autobuild
uses: github/codeql-action/autobuild@v2

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
25 changes: 18 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@ The plug-in uses **Node.js** to run the TypeScript server. The plug-in looks fo
If the `node_path` setting is present, this will override the PATH environment variable and the plug-in will use the value of the `node_path` setting as the node executable to run.
See more information in [our Tips and Known Issues](https://github.com/Microsoft/TypeScript-Sublime-Plugin/wiki/Tips-and-Known-Issues) wiki page.

Note: Using different versions of TypeScript
Using different versions of TypeScript
--------------
This plugin can be configured to load an alternate version of TypeScript.
This is typically useful for trying out nightly builds, or prototyping with custom builds.
To do that, update the `Settings - User` file with the following:

This plugin can be configured to load an alternate version of TypeScript. This is typically useful for trying out nightly builds, prototyping with custom builds, or compatibility with node_modules-free package managers like Yarn 2. To do that, update the `Settings - User` file or your project settings with the following:

```json5
"typescript_tsdk": "<path to your folder>/node_modules/typescript/lib"
Expand Down Expand Up @@ -85,16 +84,28 @@ The below features are available via the keyboard shortcuts shown, or via the Co
|Build | (Win)`^B` or `F7`, (OSX) `⌘B` or `F7` |
|Error list | (via Command Palette) |

The "format on key" feature is on by default, which formats the current line after typing `;`, `}` or `enter`.
To disable it, go to `Preferences` -> `Package Settings` -> `TypeScript` -> `Plugin Settings - User`, and add
`"typescript_auto_format": false` to the json file.
The "format on key" feature is disabled by default, which formats the current line after typing `;`, `}` or `enter`.
To enable it, go to `Preferences` -> `Package Settings` -> `TypeScript` -> `Plugin Settings - User`, and add `"typescript_auto_format": true` to the json file.

For further information about the keyboard shortcuts, please refer to the [`Default.sublime-keymap`](https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/Default.sublime-keymap) file for common shortcuts and
[`Default (OSX).sublime-keymap`](https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/Default%20(OSX).sublime-keymap),
[`Default (Windows).sublime-keymap`](https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/Default%20(Windows).sublime-keymap),
[`Default (Linux).sublime-keymap`](https://github.com/Microsoft/TypeScript-Sublime-Plugin/blob/master/Default%20(Linux).sublime-keymap)
for OS-specific shortcuts.

#### Other settings

These settings can be overridden in `Packages/User/TypeScript.sublime-settings`, which you can open by going to `Preferences` -> `Package Settings` -> `TypeScript` -> `TypeScript Settings - User`.

- `error_color`: the color of the lines drawn underneath/around type errors; either an empty string for the default color, or one of `"region.redish"`, `"region.orangish"`, `"region.yellowish"`, `"region.greenish"`, `"region.bluish"`, `"region.purplish"`, `"region.pinkish"`
- `error_icon`: specifies a gutter icon, defaults to nothing can be set to `"dot"`, `"circle"`, `"bookmark"` or any other value accepted by Sublime Text
- `error_outlined`: will draw type errors with a solid outline instead of the default which is a squiggly line underneath
- `quick_info_popup_max_width`: the max width of the quick info popup, default 1024
- `node_args`: array of command line arguments sent to the tsserver Node.js process before the tsserver script path (useful for e.g. changing max heap size or attaching debugger to the tsserver process)
- `tsserver_args`: array of command line arguments sent to tsserver Node.js process after the tsserver script path (useful for e.g. overriding tsserver error message locale)
- `tsserver_env`: environment variables to set for the tsserver Node.js process (useful for e.g. setting `TSS_LOG`). These variables are merged with the environment variables available to Sublime.
- `auto_complete_api_completions_only`: boolean to make the autocompletion only provides typescript suggestions and hides the standard completions (aka, all the words of the page). (Default value: `false`).

Project System
------
The plugin supports two kinds of projects:
Expand Down
41 changes: 41 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.7 BLOCK -->

## Security

Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), [DotNet](https://github.com/dotnet), [AspNet](https://github.com/aspnet), [Xamarin](https://github.com/xamarin), and [our GitHub organizations](https://opensource.microsoft.com/).

If you believe you have found a security vulnerability in any Microsoft-owned repository that meets [Microsoft's definition of a security vulnerability](https://aka.ms/opensource/security/definition), please report it to us as described below.

## Reporting Security Issues

**Please do not report security vulnerabilities through public GitHub issues.**

Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://aka.ms/opensource/security/create-report).

If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://aka.ms/opensource/security/pgpkey).

You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://aka.ms/opensource/security/msrc).

Please include the requested information listed below (as much as you can provide) to help us better understand the nature and scope of the possible issue:

* Type of issue (e.g. buffer overflow, SQL injection, cross-site scripting, etc.)
* Full paths of source file(s) related to the manifestation of the issue
* The location of the affected source code (tag/branch/commit or direct URL)
* Any special configuration required to reproduce the issue
* Step-by-step instructions to reproduce the issue
* Proof-of-concept or exploit code (if possible)
* Impact of the issue, including how an attacker might exploit the issue

This information will help us triage your report more quickly.

If you are reporting for a bug bounty, more complete reports can contribute to a higher bounty award. Please visit our [Microsoft Bug Bounty Program](https://aka.ms/opensource/security/bounty) page for more details about our active programs.

## Preferred Languages

We prefer all communications to be in English.

## Policy

Microsoft follows the principle of [Coordinated Vulnerability Disclosure](https://aka.ms/opensource/security/cvd).

<!-- END MICROSOFT SECURITY.MD BLOCK -->
1 change: 1 addition & 0 deletions TypeScript.sublime-commands
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
{ "caption" : "TypeScript: Format Selection", "command": "typescript_format_selection" },
{ "caption" : "TypeScript: Format Document", "command": "typescript_format_document" },
{ "caption" : "TypeScript: Find References", "command": "typescript_find_references" },
{ "caption" : "TypeScript: Request Code Fixes", "command": "typescript_request_code_fixes" },
{ "caption" : "TypeScript: Navigate To Symbol", "command": "typescript_nav_to" },
{ "caption" : "TypeScript: Rename", "command": "typescript_rename" },
{ "caption" : "TypeScript: Refactor", "command": "typescript_get_applicable_refactors" },
Expand Down
9 changes: 8 additions & 1 deletion TypeScript.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
{
"auto_complete_triggers" : [ {"selector": "source.ts", "characters": "."} ],
"auto_complete_api_completions_only": false,
"use_tab_stops": false,
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?"
"word_separators": "./\\()\"'-:,.;<>~!@#%^&*|+=[]{}`~?",

// empty string, or one of "region.redish", "region.orangish", "region.yellowish", "region.greenish", "region.bluish", "region.purplish", "region.pinkish"
"error_color": "",
"error_icon": "",
"error_outlined": false,
"quick_info_popup_max_width": 1024
}
Loading