์ ๋ํ ๋์๋ง์์ hide
A์ TextEditor
๋ ๋งํ๋ค :
<strong i="8">@deprecated</strong> **This method is deprecated.**
Use the command 'workbench.action.closeActiveEditor' instead.
๊ทธ๋ฌ๋ closeActiveEditor
๋ Complex Commands API ํ์ด์ง์ ๋์ด๋์ง ์์ต๋๋ค. ์ด๊ฒ์ ๋จ์ง ์ค์์
๋๊น, ์๋๋ฉด ๊ทธ ํ์ด์ง๊ฐ ์ฐ๋ฆฌ๊ฐ ํธ์ถํ ์ ์๋ ๋ช
๋ น์ ์ ์ฒด ๋ชฉ๋ก์ด ์๋๋๊น?
์ฐ๋ฆฌ๋ ๋ค์์ด ์์ต๋๋ค
commands.getCommand(true)
๋ชจ๋ ์๋ ค์ง(๋ด๋ถ ์๋) ๋ช
๋ น ๋ชฉ๋ก์ ์ป์ผ๋ ค๋ฉด https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3285 ๋๋
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ฐ๋ฆฌ๋ ๋ค์์ด ์์ต๋๋ค
commands.getCommand(true)
๋ชจ๋ ์๋ ค์ง(๋ด๋ถ ์๋) ๋ช ๋ น ๋ชฉ๋ก์ ์ป์ผ๋ ค๋ฉด https://github.com/Microsoft/vscode/blob/master/src/vs/vscode.d.ts#L3285 ๋๋