[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#70023: [PATCH] Add typescript-ts-mode indentation for interface bodi
From: |
Noah Peart |
Subject: |
bug#70023: [PATCH] Add typescript-ts-mode indentation for interface bodies |
Date: |
Tue, 26 Mar 2024 23:20:18 -0700 |
Tags: patch
Adds missing indentation for typescript interfaces.
Currently, there is no indentation for property signatures in typescript
interfaces.
To reproduce, call `M-x (my-test-typescript-indent)`
(defun my-test-typescript-indent ()
(interactive)
(typescript-ts-mode)
(setq-local typescript-ts-mode-indent-offset 4)
(indent-region (point-min) (point-max)))
in buffer with the following typescript code:
interface Foo {
foo: string; // no matching indent rule
bar?: boolean; // no matching indent rule
}
In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.33, cairo version 1.16.0) of 2024-03-24 built on noah-X580VD
Repository revision: c5de73a95a6ecefe46fe1ac07da8e83032be7f5b
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Ubuntu 22.04.4 LTS
Configured using:
'configure --prefix=/usr/local --with-modules --with-tree-sitter
--with-threads --with-x-toolkit=gtk3 --with-xwidgets --with-gnutls
--with-json --with-mailutils --with-jpeg --with-png --with-rsvg
--with-tiff --with-xml2 --with-xpm --with-imagemagick CC=gcc-12
CXX=gcc-12'
0001-Add-typescript-ts-mode-indentation-for-interface-bod.patch
Description: Text Data
- bug#70023: [PATCH] Add typescript-ts-mode indentation for interface bodies,
Noah Peart <=