FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
VSpaceCode/src/bufferCommands.ts at master · VSpaceCode/VSpaceCode · GitHub
VSpaceCode
/
VSpaceCode
Public
Notifications
You must be signed in to change notification settings
Fork
129
Star
1.5k
Code
Issues
66
Pull requests
13
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
VSpaceCode
/
src
/
bufferCommands.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (13 loc) · 475 Bytes
Breadcrumbs
VSpaceCode
/
src
/
bufferCommands.ts
Copy path
File metadata and controls
14 lines (13 loc) · 475 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
env
,
window
}
from
"vscode"
;
import
{
defaultStatusBarTimeout
}
from
"./constants"
;
export
async
function
copyWholeBuffer
(
)
{
const
activeEditor
=
window
.
activeTextEditor
;
if
(
activeEditor
)
{
const
lineNumber
=
activeEditor
.
document
.
lineCount
;
await
env
.
clipboard
.
writeText
(
activeEditor
.
document
.
getText
(
)
)
;
window
.
setStatusBarMessage
(
`
${
lineNumber
}
lines copied`
,
defaultStatusBarTimeout
)
;
}
}
Back
|
FazBrowse Home
|
New Git URL