mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 19:44:25 +01:00
don't auto close on single quote
In F# the `'` is prepended to an identifier to indicate it is generic in type and function signatures:
```
let fn (x: 'a ) (y: 'b) = ...
type Box< 'a, 'b > () = ...
type Inter =
abstract Op : 'a -> 'b -> 'c
```
It is also common convention to append it to binding names as it is a valid identifier char, e.g. `let x = 10 in let x' = x + 5`. These usages are vastly more common than using `'` to surround a character literal and as such the auto close behavior is incredibly annoying when writing F#.
This commit is contained in:
@@ -12,8 +12,7 @@
|
||||
["{", "}"],
|
||||
["[", "]"],
|
||||
["(", ")"],
|
||||
["\"", "\""],
|
||||
["'", "'"]
|
||||
["\"", "\""]
|
||||
],
|
||||
"surroundingPairs": [
|
||||
["{", "}"],
|
||||
@@ -22,4 +21,4 @@
|
||||
["\"", "\""],
|
||||
["'", "'"]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user